I am not that firm in js - maybe someone has done something like that.
I need to check that if someone changes a password, compare it to the confirmation input-field.
Thanks for help
if(el.hasClass('string6')){
if(el.value.length < 6){
valid = false;
this.setMsg(el, 'Bitte min. 6 Zeichen eingeben');
}else{
valid = true;
}
}
if(el.hasClass('confirm')){
if(el.value != $('password').value){
valid = false;
this.setMsg(el, 'Passwords do not match');
}else{
valid = true;
}
}Users browsing this forum: Alexa [Bot] and 0 guests