Validatious 2.0

Easy form validation with unobtrusive JavaScript

Add validators with parameters

Some validators, such as min-val, need parameters to work properly. Parameters are added to the validator names separated with an underscore:

This will add the min-lenght validator to the field with the parameter 3 (ie name should be atleast 3 characters).

Example

The following form uses parameters with some validators. See code below.

Next: Specify custom error messages | Back to HTML extension features index

© 2008 Christian Johansen. Validatious is licensed with a BSD License, documentation and site content with CC Attribution-Share Alike. About.