I'm using the jquery validate plugin to validate a form where quite a lot of fields are required. For clarity's sake, I'd like to use the error message container to display error messages, however in that case I'll only see the same generic (or customized) error message for each field.
I'd like at least to be able to add the name of the field in front of each error message in order to make the error messages easier to grasp. Here's an example of what I'd like to achieve:
There are errors in your form:
- Type of fruit: required
- Quantity: required
- Category: required
Instead of simply getting:
There are errors in your form:
- required
- required
- required
I've been searching through the plugin's doc and the internet in general for a while now but couldn't find any indication on how to achieve this in an easy and straightforward manner.
Does anybody know if this can be done, and how?