jQueryValidation issues: Label class always has errorClass
I am a newbie with jquery and this module.
But trying to style valid/invalid fields, I inspected the fields and I noticed that the errorClass class is never removed from the label tag
I setup a "digits" field with min=3 and max=30.
When I enter 1 in the field then label
Please enter a value greater than or equal to 3 is displayed.
The Inspector shows that the label has the class
When I enter 12 in the field then label is not displayed but has 2 classes:
To me this errorClass should be removed when the field is valid.
As reference, the validClass is removed when the field is invalid!
This, because I want to use the $.validator.setDefaults success:option and I was struggling detecting invalid elements.
By the way, I was expecting to find a error: option the counterpart of success but it does not exist.
To me success is used to act in case of successful validation (so I can use glyphicon-ok to have a green ticker)
So other question how to act on validation error (so I could use glyphicon-remove to have a red cross)
Thanks for your help, time and kind understanding....