Use removeAttr…
$("option:selected").removeAttr("selected");
Or Prop
$("option:selected").prop("selected", false)
More Related Contents:
- jQuery Adding new option to select element doesn't pick up the string [closed]
- jQuery get value of select onChange
- Why does the jquery change event not trigger when I set the value of a select using val()?
- Use jQuery to change a second select list based on the first select list option
- Click event on select option element in chrome
- jQuery: Best practice to populate drop down?
- Auto resizing the SELECT element according to selected OPTION’s width
- How to make the first option of selected with jQuery
- Selecting text on focus using jQuery not working in Safari and Chrome
- Populate Select box options on click with Javascript/Jquery with Json data
- Get index of selected option with jQuery
- Get SELECT’s value and text in jQuery [duplicate]
- Jquery- Get the value of first td in table
- Disable select options based on value *through the HTML only!*
- Unselect what was selected in an input with .select()
- jQuery onchange/onfocus select box to display an image?
- JQuery :contains function limit to exact match
- How to show loading spinner in jQuery?
- Jquery live() vs delegate() [duplicate]
- How can I convince IE to simply display application/json rather than offer to download it?
- How to trigger click event on href element
- detect elements overflow using jquery
- Using jQuery to build table rows from AJAX response(json)
- How can I get the corresponding table header (th) from a table cell (td)?
- jQuery if div contains this text, replace that part of the text
- jQuery UI Dialog Button Icons
- jQuery, checkboxes and .is(“:checked”)
- JQuery.validate – one rule on blur only; the rest should be normal?
- While variable is not defined – wait
- What happens when no response is received for a request? I’m seeing retries