joined:Oct 19, 2011
I'm validating form data. Got everything working with one exception.
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.");
Have tried both && and || but simply goes the the alert and the form breaks. What am I doing wrong here?