diff --git a/jquery.validate.unobtrusive.js b/jquery.validate.unobtrusive.js index 1b0de12..810ec0a 100644 --- a/jquery.validate.unobtrusive.js +++ b/jquery.validate.unobtrusive.js @@ -24,7 +24,7 @@ function escapeAttributeValue(value) { // As mentioned on http://api.jquery.com/category/selectors/ - return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1"); + return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\\\$1"); } function getModelPrefix(fieldName) {