Skip to content

Conversation

bsrykt
Copy link
Contributor

@bsrykt bsrykt commented Dec 9, 2011

Using multiple class names for errorClass option causes duplicate error messages. Old error message does not disappear when new error message is generated. This is because multiple classes are not handled correctly by error selector function.

Example:

$(".selector").validate({
   errorClass: "invalid red"
})

@jonnypolite
Copy link

I too noticed this problem, and this revision does seem to fix it. How can we get some traction on getting this pulled in?

@magicxie
Copy link
Contributor

magicxie commented Sep 5, 2013

Hi , I request to reopen #280 :

please see the case at http://jsbin.com/aLoMOwe/3 , more than 2 error classes won't work correctly.

$(".selector").validate({
   errorClass: "invalid red anotherClass"
})

jquery v1.10.2
jquery.validation v1.11.1
chrome30.0.1581.2 dev-m

error

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

Successfully merging this pull request may close these issues.

4 participants