A JavaScript validator for DOM elements with a jQuery wrapper
There are two key parts:
- Core library to do the validation
- jQuery wrapper to get DOM values and update with result
$('#element').validate();
$('#element').validate('validateAsync');
$('#element').validate('clearValidation');
var validator = new Vailidator();
validator.validate('some value', 'rule name');
See demo/validator.html