I just downloaded the jQuery plugin form validation engine. So far, everything worked fine until I checked to see if the passwords match. If the password field and password confirmation field are left blank, the error message "Fields do not match" does not appear, which is excellent because they match. But when I enter something into the password text box and type the same password in the confirmation text box, the error message remains “Fields do not match” when they are clearly visible.
HTML:
<form id = "signup">
<label>Password:</label>
<input type = "password" name = "txtPassword" id = "txtPassword" class = "validate[required,minSize[6],maxSize[50]]"/>
<label>Confirm Password:</label>
<input type = "password" name = "txtCPassword" id = "txtCPassword" class = "validate[required,equals[txtPassword]]"/>
</form>
My js file:
$(document).ready(function(){
$("#signup").validateEngine();
});
In my HTML file, I have links to CSS validation styles, as well as a validation engine and en language.
Vince source
share