Examples

Example 1

Simple (standard) validation with the validateStandard() function. Each input field is checked one after another. An error is displayed after the first invalid field is found, at which point validation stops.
:: Show example

Example 2

This example uses the validateCompleteForm() function in order to fully validate the form (ie, not stop when the first failed validation is encountered).
:: Show example

Example 3

Similar to the previous example, but a CSS is used to highlight the fields which failed to validate.
:: Show example

Example 4

Simple (standard) validation with the validateStandard() function. Each input field is checked one after another. An error is displayed after the first invalid field is found, at which point validation stops.
Similar to example 1, but using inline initialisation
:: Show example

Example 5

Demonstrates the equals parameter. A simple form with two passwords that must have the same value
:: Show example

Example 6

Shows the usage of callback functions for checking a field
:: Show example