> HTML output code:
> <input type="checkbox" name="myCheckBox" onchange="if 
> (myCheckBox.checked) 
> {myHidden.value='true';} else {myHidden.value='false';}" /> 
> <input type="hidden" name="myFirstArray[0].mySecondArray[0].myHidden" 
> 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" attribute
matches the supplied string (since "name" doesn't have to be unique in the
page). Assuming the "name"s in your page are unique, you access element 0 of
that array. If there is more than one element with that convoluted name,
then you'll have to decide somehow which one you want.

--
Tim Slattery
[EMAIL PROTECTED]


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

Reply via email to