Best way to unselect a in jQuery?

Use removeAttr

$("option:selected").removeAttr("selected");

Or Prop

$("option:selected").prop("selected", false)

Leave a Comment