Answers for "how to unselect dropdown 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
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 "how to unselect dropdown in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language