[validation] Add classes to <label> depending on type of error
when an error is triggered, you get
<label for="email_address" generated="true" class="error"></label>
I would like the class to have additional classes based on the type of error, for example,
class="error required"
class="error email"
etc.
(i dont, in the case of the example, want to use the for="email_address", because the input name could change)
I am currently using
- jQuery.extend(jQuery.validator.messages, {
required: "",
email: "",
to have no text message and I'm using a bg img for the <label>. I want to use different imgs depending on the class of the <label>