Closed faizanqadri closed 9 years ago
Not built-in, but you can set the pattern attribute of the second password field to be the literal text of the first password field when the first one blurs.
Had the same issue, this is what I used and it works perfectly:
// Make Passwords Match
$('#js-register-password').blur(function(){
$('#js-register-passwordconfirm').attr('pattern', $('#js-register-password').val() );
});
:+1:
h5validate: Is there a way to do validation for two input fields for exact match? Kindly let me know how to do that?