I'm validating form data. Got everything working with one exception.
field:phone
field:mobile
field:other
field:fax
User must fill out at least one of the contact fields.
if ((theForm.phone.value== "") && (theForm.mobile.value== "") && (theForm.other.value== "") && (theForm.fax.value == ""));
{
alert("Please enter a contact number in at least one field.");
theForm.phone.focus();
return (false);
}
Have tried both && and || but simply goes the the alert and the form breaks. What am I doing wrong here?
Thanks!