[jQuery] Jquery validation plugin question

[jQuery] Jquery validation plugin question


Hello,
Thanks for building this validation plugin, I like it. I have a
question:
The error class automatically gets added to the label with the same
for="" name, but for a certain error I need to change the element that
gains the "error" class.
For instance, I added this line to the error placement so that a
certain element receives the error class but then realised the error
class would not be removed when the error is corrected by the user:
<code>
else if (element.attr("name") == "aupairLanguageList") {
error.insertAfter("#multiSelect-aupairLanguageList-content");
$("#multiSelect-aupairLanguageList-title").addClass("error");
}
</code>
Any Ideas?
Thanks