jValidate and custom errorClass
jValidate is a great plugin, but unfortunately is lacking some decent documentation. So may be this is a trivial question, but could not find an answer on the official docs.
I have the following code
$("#dettaglio-articolo").validate({
errorElement: "div",
wrapper: "div", // a wrapper around the error message
errorClass: 'red-border',
errorPlacement: function(error, element) { },
rules: {
price: "price-validator",
...
} });
When the element does not validate the 'errorClass' is correctly added to its css properties.
However, when it validates 'errorClass' is not removed: the element receives a new class 'valid' but 'red-border' is still there.
Isn't it supposed to remove the 'errorClass' when an element validates?
If not, how can I remove it?