This is a pretty good link about Jquery validation: http://www.javascript-coder.com/form-validation/jquery-form-validation-guide.phtml#rules_dynamic Add a rule dynamically: $(selector).rules( 'add' ,{max:50}); Remove a rule: $(selector).rules( 'remove' ,'max'); Create a new rule: (For example, password policy that uses regular expression for validation) 1. Inside $(document).ready(), add following line of code: $.validator.addMethod( "passwordpolicy", function (value, element, regexp) { var re = new RegExp(regexp); return this.optional(element) || re.test(value); }, "Password must contain at least one letter and one digit" ); 2. In the HTML markup where you need to use this validation rule, add data-rule attribute data-rule-passwordpolicy and provide the regular expression as the value. The passwordpoli