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