mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
Core: Fix support for multiple error classes
String#replace with a string argument replaces just once, not all matches. Closes gh-884
This commit is contained in:
committed by
Jörn Zaefferer
parent
de830b3fd8
commit
c1f0baf36c
@@ -511,7 +511,7 @@ $.extend($.validator, {
|
||||
},
|
||||
|
||||
errors: function() {
|
||||
var errorClass = this.settings.errorClass.replace(" ", ".");
|
||||
var errorClass = this.settings.errorClass.split(" ").join('.');
|
||||
return $(this.settings.errorElement + "." + errorClass, this.errorContext);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user