Validate plugin - error message doesn't disappear when 2 classes are assigned

Validate plugin - error message doesn't disappear when 2 classes are assigned

I tried assigning 2 error classes to an error message (as a span), but when the empty field was fixed, the error message wouldn't disappear.

  1.  $("#testForm").validate({
        errorClass"ui-state-highlight ui-corner-all",
        errorElement"span"
      });


With 1 error class it works fine, but adding a second one makes it fail. Here are some links, just hit the submit button a few times on each one to see what I mean

2 classes:

1 class: