JQuery Validation Library (Document! X Sample)
jQuery Namespace > validator type : addClassRules Method
The name of the class rules to add
The compound rules
addClassRules Method
Add a compound class method - useful to refactor common combinations of rules into a single class.
Syntax
// Parameters
var className; // Type:  String
var rules; // Type:  Object

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