I would like to add the name of the errors to my function so users know which fields they have to check.
This is my current function:
showErrors: function(errorMap, errorList) {
var summary = "Please check following errors:";
$.each(errorList, function() {
summary += " * " + this.message + "<br>" ;
});
$('.errorbox').html(summary);
this.defaultShowErrors();
},
submitHandler: function() {
alert("submitted!");
}
});
How can I do this?