I am trying to learn jQuery and have stumbled across a strange problem (perhaps strange only to me). So here goes:
I have a form with id mainform
in my app. Now
There are several differences between valid and validate. Interestingly, although the docs state that
"validate needs to be called on the form before checking it using this method"
this isn't actually the case, as valid calls validate() anyway.
The two major differences are
valid can be called on a subset of form elements, whereas validate must be called on the form itself:
$('form').validate({/* options here */});
$('.myfields').valid()