$.validator.addMethod(“alphanumeric”, function(value, element) {        
        return this.optional(element) || /(\d.*[a-z])|([a-z].*\d)/.test(value);
    },’Password should have 1 number(s) and 1 lowercase alpha char(s)’);

Advertisements