Really Simple Validation (RSV) Demos - Standalone Version
2. A second example
3. All validation rules
4. Display type: alert-one
5. Display type: display-html
6. Custom validation rule
7. Custom error handler

<< Main page

#1: A simple example

This is an "out the box" validation, using all the default settings. As with all these demos, see the bottom of the page for all pertinent configuration and validation code.

First Name:
Last Name:
Your age:
Marital Status:

var rules = [];
rules.push("required,first_name,Please enter your first name.");
rules.push("required,last_name,Please enter your last name.");
rules.push("required,email,Please enter your email address.");
rules.push("valid_email,email,Please enter a valid email address.");
rules.push("required,any_integer,Please enter your age.");
rules.push("digits_only,any_integer,The age field may only contain digits.");
rules.push("required,marital_status,Please enter your marital status.");