xxxxxxxxxx
// This will select all of the text in the textarea or input called element
element.select();
xxxxxxxxxx
//looping through options select with jQuery
$("#mySelectID option").each(function(){
var thisOptionValue=$(this).val();
});
xxxxxxxxxx
var options = document.getElementById('mySelectID').options;
for (let i = 0; i < options.length; i++) {
console.log(options[i].value);//log the value
}
xxxxxxxxxx
// example:
document.querySelectorAll('.message');
// syntax:
// document.querySelectorAll('.<class-name>')