I think that is:
document.myform[''mymodel[myfield]''].value
Thank''s
Pedro Valentini
I
On Apr 5, 2005 12:18 PM, *Pedro Valentini*
<pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org
<mailto:pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org>>
wrote:
Rails use the form field names like: mymodel[myfield]
And I want to change one fiel with javascript, how I get/set this form
fields?
I trayed:
document.myform.myform.myfield.value
Very close: document.myform.myfield.value = ''foo'';
Drew
--
Pedro C. Valentini
pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org
+55 (21) 8708-8035