Answers for "jquery remove options in select box"

3

remove all options from select jquery

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language