1var options = document.getElementById('mySelectID').options;
2for (let i = 0; i < options.length; i++) {
3 console.log(options[i].value);//log the value
4}
1//looping through options select with jQuery
2$("#mySelectID option").each(function(){
3 var thisOptionValue=$(this).val();
4});