jzaefferer/jquery-validation — pull request #582 by shrimpwagon (2013-01-09 21:06:04+00:00)
Title:  Added highlight/unhighlight per rule

Added functionality to add highlighting and unhighlighting options to individual rules which will override any set highlighting or unhighlighting in the main settings

ex:

$('#myform').validate({
'rules': {
'name': {
'required': {
'highlight': function(element, errorClass, validClass) {
// Do something ...
},
'unhighlight': function(element, errorClass, validClass) {
// Do something ...
}
}
}
}
});