Fixed handling of multiple class names for errorClass option. Test by Max Lynch. Fixes #280

This commit is contained in:
Başar Aykut
2011-12-09 14:04:45 +02:00
committed by Jörn Zaefferer
parent d8210bf098
commit bafc78671a
2 changed files with 17 additions and 1 deletions

3
jquery.validate.js vendored
View File

@@ -490,7 +490,8 @@ $.extend($.validator, {
},
errors: function() {
return $( this.settings.errorElement + "." + this.settings.errorClass, this.errorContext );
var errorClass = this.settings.errorClass.replace(' ', '.');
return $( this.settings.errorElement + "." + errorClass, this.errorContext );
},
reset: function() {