Hi im trying to check to see if the user select "I agree" to the terms and use of the website. Two radio buttons of the same family, 1 stated i disagree the other, i agree, this is what i have which isnt working (r1 = i agree) I have the code in a "check form fields before submitting form" function, any thoughts..
if(document.all('r1').checked!=true) {
alert("You must agree to the Website Conditions to become a Member");
document.all('tou').focus(); // tou is the id of the radio that states "i disagree"
return false;
}
Thanks.
if(document.all('r1').checked!=true) {
alert("You must agree to the Website Conditions to become a Member");
document.all('tou').focus(); // tou is the id of the radio that states "i disagree"
return false;
}
Thanks.