Answers for "how to unselect a option in jquery"

0

jquery unselect option

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

select remove option jquery

$('.ct option').each(function() {
    if ( $(this).val() == 'X' ) {
        $(this).remove();
    }
});
Posted by: Guest on April-21-2021

Code answers related to "how to unselect a option in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language