I am using jquery and jquery.validate.cs (jQuery Validation Plugin 1.8.0) to validate a form. Right now it displays a message next to a field saying : \"This is a required fiel
$("#myform").validate({ error: function(label) { $(this).addClass("error"); }, });
use the errorClass parameter to add the .invalid class:
input.error { color: red; }