Menu
I’m having trouble using radiobuttons in a javascript program I’m putting together.
<form name=”form1″ method=”post” action=””>>
<input type=”radio” name=”radiobutton” value=”ten”>
<input type=”radio” name=”radiobutton” value=”eleven”>
</form>
I try to find out what radiobutton is selected from a function between the <head> tags.
I’m trying to find the value like this:
variable = self.form1.radiobutton.value
OR
if (self.form1.radiobutton.ten.checked == true)
and other variations but I haven’t been able to find which radiobutton has been selected. Please help. Thanks.
Stephen