Last Updated: February 25, 2016
·
414
· campherkurt

ARRRRGH... How do I get all the errors created by jquery .validate()

Ahhh yes... So you just validated your awesome form and want to grab all the awesome errors for some awesome reason.

Just add a sprinkling of:

var validator = $("#awesomeForm").validate();
var errors = validator.errorList;

This will give you a list of awesome validator error objects that includes the error message and the actual awesome jquery element object.

You're welcome :)

(I used "awesome" quite a bit)