1//looping through options select with jQuery
2$("#mySelectID option").each(function(){
3 var thisOptionValue=$(this).val();
4});
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// This will select all of the text in the textarea or input called element
2element.select();