struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frances Aleah Z. de Guzman" <>
Subject accessing form element in javascript
Date Mon, 23 Jun 2003 09:19:36 GMT
how can i access the values of my form elements using javascript in struts? 
<html:form action="/timelog" onsubmit="return submitForm()">
	<html:text property="name"/>
	<html:text property="age"/>
	<html:submit property="action">Log</html:submit>

how can i access the value of the textbox "age"? before im putting like this 
in my javascript...."document.frmName.age.value"....but there is ni form name 
in the html:form, right?
Frances Aleah Z. De Guzman
Ingenium Technology, Inc.

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message