I want to change the class that jQuery Validate applies to inputs that have an error
Change this
<input id="firstname" name="firstname" type="text" value="" maxlength="100"
class="error">
to this
<input id="firstname" name="firstname" type="text" value="" maxlength="100"
class="customErrorClass">
Try specifying the errorClass
property:
$('.selector').validate({
errorClass: 'customErrorClass',
rules: { ... },
messages: { ... }
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With