ramrom
09-22-2003, 10:19 PM
Form has a radio button group. Definition begins with:
<input type="radio" value="1" name="foo" etc
JavaScript follows:
--------------------------
x = new Object()
x.a = document.formname.foo
alert(x.a[1].checked)
for (y in x){alert(y[1].checked)}
--------------------------
line 3 works fine.
line 4 fails with error " 'y.1.checked' is null or not an object"
What am I doing wrong?
<input type="radio" value="1" name="foo" etc
JavaScript follows:
--------------------------
x = new Object()
x.a = document.formname.foo
alert(x.a[1].checked)
for (y in x){alert(y[1].checked)}
--------------------------
line 3 works fine.
line 4 fails with error " 'y.1.checked' is null or not an object"
What am I doing wrong?