I am looking for the following functionality:
The user is required to fill in either one of two fields to be able to submit. (e.g. There is a phone number field and an email field and the user must fill in at least 1 to leaves some sort of contact details.)
How can do I possibly do this through jquery? Forgive me as I am relatively new to jquery and am still learning.
I was thinking along the lines of the validate function but any way to get my desired result would be nice.
You need to test for (non-)equivalence to a blank string, or else entering the value
0will be evaluated as false.