Расширение параметров с помощью messages: {name:"name error"}
Демонстрация в реальном времени: http://jsfiddle.net/gsBTC/
$('#newform').validate({
errorPlacement: function(error, element) {
if (element.is(":radio")) {
error.prependTo(element.parent());
}
else { // This is the default behavior of the script
error.insertAfter(element);
console.log('here');
}
},
showErrors: function(errorMap, errorList) {
var summary = "You have the following errors: \n";
$.each(errorList, function() {
summary += " * " + this.message + "\n";
});
$('#errordiv').html(summary);
this.defaultShowErrors();
},
submitHandler: function() {
alert("submitted!");
},
messages: {
name : "name error",
subject: "subject error",
message: "message error"
}
});