We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3830218 + 0616bcc commit 8c06744Copy full SHA for 8c06744
js/jquery.validationEngine.js
@@ -704,7 +704,10 @@
704
}
705
706
// If the rules required is not added, an empty field is not validated
707
- if(!required && !(field.val()) && field.val().length < 1) options.isError = false;
+ //the 3rd condition is added so that even empty password fields should be equal
708
+ //otherwise if one is filled and another left empty, the "equal" condition would fail
709
+ //which does not make any sense
710
+ if(!required && !(field.val()) && field.val().length < 1 && rules.indexOf("equals") < 0) options.isError = false;
711
712
// Hack for radio/checkbox group button, the validation go into the
713
// first radio/checkbox of the group
0 commit comments