Using this plugin, you can also specify which class you want to use for the error state.
$('.selector').validate({ errorClass: 'newError' });
There are also highlight and ambiguity options that allow you to apply a more complex style to an element containing an error, for example:
$('.selector').validate({ highlight: function(element, errorClass) { $(element).fadeOut(function() { $(element).fadeIn(); }); } });
http://docs.jquery.com/Plugins/Validation/validate#options
source share