I don't want to remove the options, just clear the selected value.
I tried the following:
$("#myid").val("")
and that does not seem to work.
You can use prop
method.
$("#myid option:selected").prop("selected", false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With