sage from "Slattery, Tim - BLS" <[EMAIL PROTECTED]> on Mon, 24
May 2004 13:53:47 -0400 -
To:
'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject:
RE: REPOST: nested hierarchy property and javascript
> HTML output code:
>
> value="true"
> HTML output code:
>
> value="true" />
The value of the "name" attribute is just a character string to the DOM. So
access the element like this:
getElementsByName("myFirstArray[0].mySecondArray[0].myHidden")[0].value="new
value";
"getElementsByName" returns an array of elements whose "name"
I am struggling with using javascript to reference a nested property that
is 2 levels deep. I didn't seem to find anything on this topic that helped
me when searching the archive list. Here is an example of my code that is
NOT working because document.forms[0].myHidden does not exist (it's in a
3 matches
Mail list logo