Hey, Can anyone tell me how to reset a select box to its' default value.
I have this at the moment:
var selForm = document.insert;
selForm.at.options[selForm.at.selectedIndex].value= 0;
html:
<select name='at'>
<option value=0>Choose
<option value=1>One
<option value=2>Two
<option value=3>Three
<option value=4>Four
<option value=5>Five
<option value=6>Six
</select>
Thanks.
I have this at the moment:
var selForm = document.insert;
selForm.at.options[selForm.at.selectedIndex].value= 0;
html:
<select name='at'>
<option value=0>Choose
<option value=1>One
<option value=2>Two
<option value=3>Three
<option value=4>Four
<option value=5>Five
<option value=6>Six
</select>
Thanks.