How to see jQuery validation list of elements with errors

Dragos Durlut picture Dragos Durlut · Aug 14, 2012 · Viewed 32.5k times · Source

Sometimes, the form won't submit because jQuery has some invalid elements that will not show up in an error message.

How can we see these errors in order to debug more easily ?

Answer

Dragos Durlut picture Dragos Durlut · Aug 14, 2012
var validator = $("form").validate()
validator.errorList

will show the array of errors that are holding back the form from submiting.