View Full Version : Reset 2nd select

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>

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


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

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