Answers for "remove option select jquery with ajax return"

1

select remove option jquery

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

jquery remove option from dropdown

<script>
$( ".dropdown" ).change(function() {
  dropdownval = $( ".dropdown" ).val();
  $(".dropdown option[value='dropdownval']").remove();
});
</script>
Posted by: Guest on June-08-2020

Code answers related to "remove option select jquery with ajax return"

Code answers related to "Javascript"

Browse Popular Code Answers by Language