posted 20 years ago
My form has 3 radio buttons,
<input type="radio" name="type" value="Systems" checked/>
systems
<input type="radio" name="type" value="machines" />
Machines
<input type="radio" name="type" value="Misc" />
Misc
I am trying to get the value of the checked checkbox.
I just wrote,
function go() {
alert("h");
if(formname.type.checked)
alert("yes");
}
This is not doing anything
Also, if I say alert(formname.type.checked) it gives me undefined.
What am I missing here ?