I am trying to do several validations through javascript/jQuery. I need to know what kind of logic I can use.
I have around 15 fields to validate. I was thinking if I could validate each field with a return value of true or false. I would then check if any of the returned values is false. If it is then the form is not validated. Does this makes sense?
Or do I have to go through a set of if else nested conditions, for one field after another?
PS: I don't want to use the jQuery validate plugin since there are few complications in my form.
Let me know what you think how I should do it.
Thanks.