title: Loop over each failed rule with jquery.validate
body: <p>I need to be able to loop over the current failed rules after my form has been validated using the jquery.validate library.</p>
  
  <p>I've looked at the following:</p>
  
  <pre><code>$('form').validate().errorList
  </code></pre>
  
  <p>This returns the message and element of the error, but not the rule/name of the rule that failed.</p>
  
  <pre><code>$('form').validate().errorMap
  </code></pre>
  
  <p>This just returns an element ID/message pair.</p>
  
  <pre><code>$('form').validate().settings.rules
  </code></pre>
  
  <p>This returns a list of all elements and their associated rules, but no value that indicates which ones are currently failed.</p>
  
  <p>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.</p>
  
  <p>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.</p>