Destroys this instance of validator freeing up resources and unregistering events.
Object holding all validation methods known to the validator. This can be accessed to override individual methods, while keeping the default messages.
Accepts everything that validate() accepts.
One or more arguments can be passed, in addition to the string template itself, to insert into the string.
If you're familiar with the term, this makes this function support currying. If you don't care about that, just use the first argument.
The actual method implementation, returning true if an element is valid. First argument: Current value. Second argument: Validated element. Third argument: Parameters.
the current value of the validated element
the element to be validated
parameters specified for the method, e.g. for min: 5, the parameter is 5, for range: [1, 5] it's [1, 5]
The default message to display for this method. Can be a function created by ''jQuery.validator.format(value)''. When undefined, an existing message is used (handy for localization), otherwise the field-specific messages have to be defined.
For simple one-off validation, you can use the bundled
pattern method (in additional methods, source in
src/additional/pattern.js) to validate a field against a regular expression.
In general, it is a good idea to encapsulate those regular expressions inside their own method.
If you need lots of slightly different expressions, try to extract a common parameter.
See also a library of regular expressions.
Show the specified messages.
Resets the controlled form.
Returns the number of invalid fields.
Validates the form, returns true if it is valid, false otherwise.