Answers for "how to deselect option in jqery"

1

jquery unselect option

$("option:selected").removeAttr("selected"); //solution 1
$("option:selected").prop("selected", false); //solution 2
Posted by: Guest on May-12-2021
6

jquery remove option from select by value

$("#FIELDID option[value='X']").remove();
Posted by: Guest on February-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language