Answers for "getting the list of select options in jquery"

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
0

jquery: get selected option of the drop down list

$('#ddlID').val();
$('#ddlID').text();
Posted by: Guest on June-28-2020

Code answers related to "getting the list of select options in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language