get all items in select with javascript code example
Example 1: jquery get all select options
//looping through options select with jQuery
$("#mySelectID option").each(function(){
var thisOptionValue=$(this).val();
});
Example 2: javascript select all elements
// example:
document.querySelectorAll('.message');
// syntax:
// document.querySelectorAll('.<class-name>')