Add a compound class method - useful to refactor common combinations of rules into a single class.
The name of the class rule to add
The compound rules
Add a compound class method - useful to refactor common combinations of rules into a single class.
A map of className-rules pairs
Add a custom validation method. It must consist of a name (must be a legal javascript identifier), a javascript based function and a default string message.
The name of the method used to identify it and referencing it; this must be a valid JavaScript identifier
The actual method implementation, returning true if an element is valid. First argument: Current value. Second argument: Validated element. Third argument: Parameters.
Validates a single element, returns true if it is valid, false otherwise.
An element to validate, must be inside the validated form. eg "#myselect"
boolean
Validates the form, returns true if it is valid, false otherwise.
boolean
Replaces {n} placeholders with arguments.
The string to format.
string
Returns the number of invalid fields.
number
Resets the controlled form.
Modify default settings for validation.
Show the specified messages.
One or more key/value pairs of input names and messages.
number
boolean