<select size="2"> <option selected="selected">Input your option</option> <option>Input your option</option> </select>
What is the best way, using jQuery, to elegantly unselect the option?
Use removeAttr...
$("option:selected").removeAttr("selected");
Or Prop
$("option:selected").prop("selected", false)
1.4m articles
1.4m replys
5 comments
56.9k users