Example 2

This example will show you a complete form, but you can still submit the form. On the serverside the validation begins

Presence

Enter the field then click somewhere else


Format

Should contain the phrase 'live' in any case:


Numericality

Basic

Should be a number:

Only allow integers

Should be an integer:

Specific number

Should be 2000 (or scientific representation of it, 2e3):

Higher than or equal to a minimum number

Should be 2000 or higher (or scientific representation of it, 2e3):

Lower than or equal to a maximum number

Should be 2000 or lower (or scientific representation of it, 2e3):

Within a range of numbers

Should be between 2000 and 2003:

Combination

Should be between 2000 and 2003, and also be an integer:


Length

Specific length

Should be 4 characters in length:

Longer than or equal to a minimum length

Should be 4 or more characters in length:

Shorter than or equal to a maximum length

Should be 4 or less characters in length:

Within a range of lengths

Should be between 4 and 8 characters in length:


Inclusion

Exact match

Should be "cow", "pigeon", or "giraffe":

Partial match

Should contain "cow", "pigeon", or "giraffe" somewhere in your entry:


Exclusion

Exact match

Should not be "cow", "pigeon", or "giraffe":

Partial match

Should not contain "cow", "pigeon", or "giraffe" anywhere in your entry


Acceptance

I accept that LiveValidation is the validation of my dreams:


Confirmation

Enter a password:

Confirm password:


Email

Should be an email address:


onlyOnBlur

Must be filled in:


wait

Required, and at least 10 characters (validation starts after 300ms):


Selectbox