Return false to prevent the default behaviour when adding/removing error messages.
Example: $.validate(); /* Supported languages ------------------- Polish: pt Romanian: ro Danish: dk Norwegian: no Dutch: nl Czech: cz Catalan: ca Russian: ru Italian: it French: fr German: de Swedish: se English: en Portuguese: pt */ if you want to validate a form programmatically. The first argument being an object used to override the default error dialogs and the second argument being the configuration object.
Modifying the server request The parameter containing the input value, sent to the server, will by default have the same name as the input.
You can however set your own parameter name by using the attribute By using the module sanitize you will be able to declare sanitation functions that will be triggered when inputs looses focus.
If you want to allow any kind of letters (not only A-Z) you're looking for the letternumeric validator.
Validate qty of checkboxes in a group (same name) have been checked, using min, max or range.
validator Function - Callback function that validates the input.
Should return a boolean telling if the value is considered valid or not.
If you feel the need to configure your form validation using Java Script you probably should look into jquery-validation or or any of the other superb form validation solutions out there.
But there is of course a way to accomplish this using j Query-Form-Validator as well, by using the module name - The name of the validator, which is used in the validation attribute of the input element.
There are four different callbacks you can declare when setting up the validation.
There are also two types of events triggered on elements when they get validated. An input with an invalid value will automatically get a red border color.
You declare them using the attribute data-sanitize.