amir amir - 6 months ago 20
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.

thanks

Answer

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

Where #mySelectBox is the id of your select element.

Comments