Skip to content
New issue

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

Validation not working properly #7

Open
nate-m opened this issue Jun 19, 2012 · 0 comments
Open

Validation not working properly #7

nate-m opened this issue Jun 19, 2012 · 0 comments

Comments

@nate-m
Copy link

nate-m commented Jun 19, 2012

The checkValidation() function only performs the validation checks when the select element has the configured errorClass ('error' by default). This means, the validation check will only be ran when the field is already flagged with an error.

This patch fixed it for me:

     function checkValidation() {
-          if (select.form && typeof ($(select.form).validate) == "function" &&
-                  $(select).add($selectSingle).hasClass($(select.form)
-                          .validate().settings.errorClass))
+          if (select.form && typeof ($(select.form).validate) == "function")
               $(select.form).validate().element(select);
     }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant