You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Slattery, Tim - BLS" <Sl...@bls.gov> on 2004/06/04 18:22:16 UTC

RE: Alias names that can be used in javascript to reference when using multiple forms that could point to the same action?

> My question is, does anything exist or will exist to refer to 
> a form in javascript without having to dive into a positional 
> array when having multiple html:form's tags pointing to the 
> same action?

Use the styleID attribute of the <html:form...> tag. That resolves into the
"id" attribute of the HTML <form...> tag. Then you can access that form from
Javascript using the "getElementById(...) function, which works on IE and
Mozilla based browsers.


--
Tim Slattery
Slattery_T@bls.gov


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org