Answers for "how to get the select tag jquery"

7

jquery selected option text

$("#mySelect option:selected").html();
Posted by: Guest on April-25-2020
2

jquery get all select options

//looping through options select with jQuery
$("#mySelectID option").each(function(){
    var thisOptionValue=$(this).val();
});
Posted by: Guest on August-05-2019

Code answers related to "how to get the select tag jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language