Menu
This works:
if((form.abc.checked == true) && (form.abcaccess.value == “”)) {
alert(“nError!rnblah, blah”)
form.abcaccess.focus();
return false;
}
But this doesn’t:
if((form.name.checked == true) && (form.lname.value != true || form.middle.value != true || form.phone.value != true)) {
alert(“nError!rnblah, blah, blah.”)
form.name.focus();
return false;
}
Anytime I get past trying to validate more than two fields, it breaks.
What I want is to say if box 1 is checked, and box 2, 3 or 4 are not checked, error.
Thanks…