mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-24 12:13:59 +01:00
* Fixed errorsFor method where the for-attribute contains characters that need escaping to be valid inside a selector (http://plugins.jquery.com/node/9611)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
* Added automatic detection of substitution parameters in messages, removing the need to provide format functions (http://plugins.jquery.com/node/11195)
|
||||
* Fixed an issue with :filled/:blank somewhat caused by Sizzle (http://plugins.jquery.com/node/11144)
|
||||
* Added an integer method to additional-methods.js (http://plugins.jquery.com/node/9612)
|
||||
* Fixed errorsFor method where the for-attribute contains characters that need escaping to be valid inside a selector (http://plugins.jquery.com/node/9611)
|
||||
|
||||
1.5.5
|
||||
---
|
||||
|
||||
5
jquery.validate.js
vendored
5
jquery.validate.js
vendored
@@ -648,7 +648,10 @@ $.extend($.validator, {
|
||||
},
|
||||
|
||||
errorsFor: function(element) {
|
||||
return this.errors().filter("[for='" + this.idOrName(element) + "']");
|
||||
var name = this.idOrName(element);
|
||||
return this.errors().filter(function() {
|
||||
return $(this).attr('for') == name
|
||||
});
|
||||
},
|
||||
|
||||
idOrName: function(element) {
|
||||
|
||||
Reference in New Issue
Block a user