this question has answer here:
i have following jquery validate configuration:
$('form[name=register_form]').validate({ rules: { email: { required: true, email: true }, password: { minlength: 3, maxlength: 15 }, confirm_password: { minlength: 3, maxlength: 15, equalto:"#password" } }, messages: { email: "you should input real email adress!" } } as can see fields password , confirm_password have 2 restrictions.
1. length 3 -15 2. should equal. can advise how override both these messages ?
p.s.
when write following config:
messages: { email: "invalid email", password: "too simple password", confirm_password: "too simple password", equalto: "wrong password confirmation" } even if passwords has length equals 10 different see message too simple password
try this:
messages: { password: { minlength: 'your password must @ least 3 characters long', maxlength: 'your password cannot exceed 15 characters', equalto: "wrong password confirmation" } }
Comments
Post a Comment