Hooking the onblur and onkeyup for the validator plugin.

Hooking the onblur and onkeyup for the validator plugin.

I am using the JQuery validation plugin.  What I am trying to do is to detect when a validation fires.  I have successfully hooked the submit functionality but I need the onblur and onkeyup as well.  I have a form with tabs across the top.  If a field is in an invalid state, I want to display an exclamation mark beside that tab.  I have it working fine on submit but not when the fields validate onblur.  What I use to hook the submit is the following.
 
var validator = $("form").validate({
  invalidHandler: function(form, validator)
  {
    var errors = validator.numberOfInvalids();
    if (errors)
    {
      var elementNdx;
      for (elementNdx = 0; elementNdx < errors; elementNdx++)
      {
        // do some stuff to the element in question.
      }
    }
  }
});

I would like to know how I can add a function to when the field validates on Blur or on Keyup.  Thanks.














Scott.