Answers for "how to explore options from select in jquery and remove a option"

3

remove all options from select jquery

$('#mySelect')
    .empty()
Posted by: Guest on March-18-2020
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 explore options from select in jquery and remove a option"

Code answers related to "Javascript"

Browse Popular Code Answers by Language