Returns the validations rules for the first selected element or
Adds the specified rules and returns all rules for the first matched element. Requires that the parent form is validated, that is, $( “form” ).validate() is called first or
Removes the specified rules and returns all rules for the first matched element.
There are several ways to specify validation rules.
When setting, the rules can also contain a messages-object, specifying custom messages for existing or added rules.