Menu
I have 2 radio buttons and I want to make sure that one is checked before continuing. (I can not have one checked by default) So I am trying something like this but it is not working. I just want to say that
if optRadio(0).checked == false and if optRadio(1).checked==false then
do something
else
do this
end if
This is the code i have that does not work.
[code]
if(document.form1.optProduct(0).checked==”false”&&document.form1.optProduct(1).CHECKED==”false”){
alert(“Both false”);
}
else{
alert(“one is checked”);
}
This code just defaults to the else statement, wheater one is checked or both are not checked.