We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not sure if this is a bug or not. If you have rules that are such:
var depends = function() { return false; }; $('form').validate({ rules: { field : { email: true, required: depends } } });
even if the email validator passes, the success function is not called on the field. Not only that, but $('[name="field"']).valid() return 0.
email
0
The text was updated successfully, but these errors were encountered:
Triggering success on optional but have other successful validators
883d2f0
Addresses issue jquery-validation#851. The comment in the code itself says "when there are no other rules" but does nothing to enforce that comment. This uses a jquery map function to count object keys, as Object.keys does not work in < IE9. Taken from http://stackoverflow.com/questions/5533192/how-to-get-object-length-in-jquery
f93e1de
No branches or pull requests
I'm not sure if this is a bug or not. If you have rules that are such:
even if the
email
validator passes, the success function is not called on the field. Not only that, but $('[name="field"']).valid() return0
.The text was updated successfully, but these errors were encountered: