I have two HTML select boxes. I need to reset one select box when I make a selection in another.
select
&l
Use this if you want to reset the select to the option which has the "selected" attribute. Works similar to the form.reset() inbuilt javascript function to the select.
$("#name").val($("#name option[selected]").val());