Answers for "jquery select option deselect all"

0

jquery unselect option

$("option:selected").removeAttr("selected"); //solution 1
$("option:selected").prop("selected", false); //solution 2
Posted by: Guest on May-12-2021
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 "jquery select option deselect all"

Code answers related to "Javascript"

Browse Popular Code Answers by Language