Excellent. I figured there was something like this. Your solution worked nicely. For any others that may be interested, here's an example of what I used:

    onclick="this.form['parent.nestedname'][2].checked='true'"

Thanks,
Michael

On Nov 3, 2004, at 10:51 AM, Jason King wrote:

document.formname["parent.nestedname"] will reference an element in the form formname which has a period in it's name.
Michael Rush wrote:


I've got a form that's using nested forms, with the following type of layout..

[radio] option 1
   [text] value 1
   [text] value 2

[radio] option 2
   [text] value 1
   [text] value 2

[radio] option 3
   [text] value 1
   [text] value 2

Each of the groups is a nested form, so the form element names are in the form of nestedform.property. I would like to add an onclick to the text fields so that the radio button for that group is selected if someone starts entering text in the value1 or value 2 fields. The problem is that the field names have a period in them, so javascript is thinking there's another object in the hierarchy. Is there a way to escape or quote the name of the field? Or another way to identify the field?

Thanks,
Michael


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




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



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



Reply via email to