Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default drop down box values

Status
Not open for further replies.

JazzLeg

Programmer
Aug 22, 2002
63
GB
Hi,

Does anyone know how to set the value of a drop down box to something other than the first selection set in the option tags, upon opening a page?

Thanks
 
<select name=&quot;mySelect&quot;>
<option>Option 1
<option>Option 2
<option SELECTED>option 3
<option>Option 4
</select> -- Just trying to help...
[wolf]<--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
 
Code:
<select>
<option>some option
<option SELECTED>some other option
</select>
This is not a bug - it's an undocumented feature...
;-)
 
fantastic! for some reason i thought it was gonna be something complicated. This pleases me.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top