Hi
I'm trying to validate a radio button which has no default value because I want to make sure the user chooses one of two options.
I want to use simple validation like I'd use on a text field, but this doesn't work for a radiobutton
e.g.
if (document.form1.radiobuttonx.value.length < 1) {
alert("please choose"
return false;
}
Thanks
Guy
I'm trying to validate a radio button which has no default value because I want to make sure the user chooses one of two options.
I want to use simple validation like I'd use on a text field, but this doesn't work for a radiobutton
e.g.
if (document.form1.radiobuttonx.value.length < 1) {
alert("please choose"
return false;
}
Thanks
Guy