jQuery validation plugin: How to call a function when a field is validated
<p>In this function I am displaying an error image in next td of table when a field is not validated. It is displaying error images correctly but when a field is valided, it's error image is not removed from next td. I tried to use "success" option but it is not working. Can anyone tell me the exact code.</p>

<pre><code>$(obj).find("form").validate({

 showErrors: function(errorMap, errorList) {
  for ( key in errorMap ) {
    $('#' + key).parent().next().html("&lt;img id='exclamation' src='images/exclamation.gif' /&gt;");
  }
 }

});
</code></pre>
