JQuery Validation
addClassRules Method
Add a compound class method - useful to refactor common combinations of rules into a single class.
Syntax
jQuery.validator.addClassRules(className, rules); 
function addClassRules( 
   className : String, 
   rules : Object 
) : void;

Parameters

className
The name of the class rules to add
rules
The compound rules
Browser Compatibility
8
5
5
See Also

Reference

validator type
validate jQuery Plugin

 

 


© 2013 All Rights Reserved.

Send comments on this topic.