[jQuery] [validate] Trying to highlight single error in two locations.
I want my error to appear as it is, but I also want to add a class the
<li> the form element is in.
I can do this via :
errorPlacement: function(error, element){
element.parents('li').addClass('error');
},
but I can't figure out how to make the class go away when the error is
cleared.
(basically I want the error message to popup, but I want to highlight
the row the form element is in, and want the highlight to go away when
the error is fixed.)
What am I missing?
Thanks.
Tony