You can specify in body onload as follows

<body onload="document.myForm.mySelect.selectedIndex=0;">

You can specify any index that you want to set as default selection.


-----Original Message-----
From: Pankaj Gupta [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 4:13 PM
To: Struts Users Mailing List
Subject: How to specify default displayed value in html:select

Hi,

Please suggest how can I specify which value(s) to be displayed as 
selected by default in html:select tag, when specified through 
collection attribute.

regards,
Pankaj

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to