karayan
05-29-2003, 08:34 PM
This is driving me batty. I have some exclusive radio buttons:
<form name="myForm">
<input type="radio" name="myRadio" value="1" CHECKED>
<input type="radio" name="myRadio" value="2">
</form>
Now the Javascript codeling that wants to read the value of the clicked button, tries to access:
document.myForm.myRadio.value
This always returns undefined, no matter what button I click.
What am I doing wrong?
George
:confused:
<form name="myForm">
<input type="radio" name="myRadio" value="1" CHECKED>
<input type="radio" name="myRadio" value="2">
</form>
Now the Javascript codeling that wants to read the value of the clicked button, tries to access:
document.myForm.myRadio.value
This always returns undefined, no matter what button I click.
What am I doing wrong?
George
:confused: