amir amir - 1 year ago 72
Javascript Question

how to unselect a select option box after some calculation is done

just wondering how it's possible to un-select the select option box, i used .remove() but this actually removes the text from the select box,

is there any other way.


Answer Source

$('#mySelectBox :selected').attr('selected', '');

Where #mySelectBox is the id of your select element.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download