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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"id" attribute for html:select

Status
Not open for further replies.

newDBA

MIS
Nov 8, 2001
21
FR
Using Javascript I need to be able to access select menus using 'getElementById(...)'. But html:select doesn't print an "id" attribute. Any suggestions how I can get an "id" attribute in a select menu (short of writing my own taglibs)?

If I end up having to use regular select menus (not html:select), is there a way to bind the value of a select menu to a bean attribute - similar to spring:bind?

If this can't be done, are there any suggestions how I can get around this?

Thanks.
 
That's perfect, thanks! (i can't believe i didn't see that in the .tld :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top