Answers for "jquery get element options"

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
1

jquery selected option

$( "#myselect option:selected" ).val();
Posted by: Guest on July-13-2020

Browse Popular Code Answers by Language