Loop over each failed rule with jquery.validate
===

I need to be able to loop over the current failed rules after my form has been validated using the jquery.validate library.

I've looked at the following:

    $('form').validate().errorList

This returns the message and element of the error, but not the rule/name of the rule that failed.

    $('form').validate().errorMap

This just returns an element ID/message pair.

    $('form').validate().settings.rules

This returns a list of all elements and their associated rules, but no value that indicates which ones are currently failed.

I need something that contains both the element (or its ID) and the rule that failed.  Of course, an element may be mapped to more than one failed rule.

If there's an event I can hook into with the unobtrusive library (as not all events seem to be supported unobtrusively) that will give me the rule and element on failure, this would be ideal.