Somebody once answered that question for me.
Try:
document.forms[0].elements['address.number']
instead.


Robert Nocera
New England Open Solutions
www.neosllc.com
"You supply the Vision.  We will do the rest."
� 


-----Original Message-----
From: Frederico Schuh [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 26, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: Javascript problem referencing nested form fields

I'm using nested beans inside my ActionForms, and thus
I have to reference those bean properties with dots
(like address.number) in the JSP file. So, the
generated HTML would be something like this:

<form name="myForm" action="/something.do">
   <input type="text" name="address.number">
</form>

The problem is that I can't find a way to reference
those form fields if I want to do some javascript
validation. If I do something like
"document.forms[0].address.number" it doesn't work.
How do I do it?


=====
----------------------------------------
Frederico Ferro Schuh
[EMAIL PROTECTED]
ICQ: 20486081

________________________________________________________________________
_______________________
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no
Yahoo! Empregos e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/

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


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

Reply via email to