Skip to content

jethrolarson/revalidate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

layout title
default
ReValidate - jQuery Validation Framework

Author: Jethro Larson @jethrolarson

License

Choose one: MIT, GPL, WTFPL
As is, no warranty. Authors of the code will not be held responsible for any problems that may arise from it's use.

You've tried using several different validation libraries. Many were pretty good, full-featured, and easy to use; but somehow you're always running into cases where you need some weird specific validation rule, and hacking these plugins is often really complex and against the grain.

Revalidate is a validation Framework. It has been designed to make writing strange validation rules easy while still having great UI.

Example Usage:

Set up validation on a form:

$('form').formValidator();

Create and attache a validation rule:

$('form').fieldValidator('.requiredTextbox',{
  validator: function() {
    return $.trim(this.value);
  },
  revalidateOn: 'blur keyup',
  message: 'This field is Required'
});

Specifying errors on load

Add a data-error attribute to field to make a field have an error on initial load.

Contribute

This is a new library so please report any bugs you find.

TODO

  • Set up QUnit for all the settings

Other Projects

HTML5 Placeholder Augment and Polyfill - It's HTML5 Placeholder Attribute except accessible, better, and cross-browser; while still being just as easy to use.

Releases

No releases published

Packages

No packages published