struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frances Aleah Z. de Guzman" <adeguz...@ingenium.com.ph>
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? 
example....
<html:form action="/timelog" onsubmit="return submitForm()">
	<html:text property="name"/>
	<html:text property="age"/>
	<html:submit property="action">Log</html:submit>
</html:form>

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
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message