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!

html:select

Status
Not open for further replies.
Apr 13, 2004
16
DE
hallo,

i now a similar question has been startet few days ago. but i dont understand the answer, so:
how can i select the first entry from the options in a select list?

thanks for help.
 
set the "value" attribute in the <html:select> tag to the value you want the entry to be selected. e.g. let say you have a collection, and the value of the first item is "a", then if you want to pre-select the first item:

<html:select property="..." value="a"/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top