Forms


Validation

For complete information about this plugin and how to get started view:

jQuery Validation Documentation

Validation Example

In order to use the validation styles provided with this theme you need combine your written validation rules with the custom rules provided by this theme. An example is below:

var rules = {
	rules: {
		name: {
			minlength: 2,
			required: true
		},
		email: {
			required: true,
			email: true
		},
		validateCheckbox: {
			required: true,
			minlength: 2	
		}
	}
};
	
var validateObj = $.extend (rules, Theme.validationRules);
    
$('#myForm').validate(validateObj);