...

View Full Version : Reset 2nd select



zoobie
10-21-2003, 03:20 AM
I need to reset the 2nd select named "sty" to "selected" when the first one named "let" is onchanged.
I'm close but need this kinda quickly. Thanks fellers

<form name="sara">

<select name="let" onchange="">
<option selected>Desert</option>
<option>Ocean</option>
<option>Sky</option>
</select>

<select name="sty">
<option selected>Black</option>
<option>Green</option>
<option>Blue</option>
</select>

</form>

Kor
10-21-2003, 10:43 AM
function resetOption(){
document.sara.sty.selectedIndex = 0;
}

zoobie
10-21-2003, 12:41 PM
Ahh...Thanks Kor...I was thinking defaultValue. :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum