I have the 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 you can see fields password
and confirm_password
have 2 restrictions.
1. length 3 -15
2. Its should be equal.
Can you advise how to override both these messages ?
P.S.
When I write the following config:
messages: {
email: "invalid email",
password: "too simple password",
confirm_password: "too simple password",
equalTo: "wrong password confirmation"
}
Even if my passwords has length equals 10 but different I see message too simple password