Skip to content

Commit eda9e05

Browse files
committed
escape name of input element to allow values like 'user[profile][field]'
1 parent 10c7156 commit eda9e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
if (!e) {
314314
var errors = [];
315315
$.each(errs, function(key, val) {
316-
var input = inputs.filter("[name=" + key + "]");
316+
var input = inputs.filter("[name='" + key + "']");
317317
if (input.length) {
318318

319319
// trigger HTML5 ininvalid event

0 commit comments

Comments
 (0)