We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c14c9 commit 6ef7f34Copy full SHA for 6ef7f34
form-validator/jquery.form-validator.js
@@ -333,12 +333,12 @@
333
* @protected
334
*/
335
$.fn.valAttr = function (name, val) {
336
+ name = ((name.length > 0) ? '-' + name : '');
337
if (val === undefined) {
- return this.attr('data-validation-' + name);
338
+ return this.attr('data-validation' + name);
339
} else if (val === false || val === null) {
- return this.removeAttr('data-validation-' + name);
340
+ return this.removeAttr('data-validation' + name);
341
} else {
- name = ((name.length > 0) ? '-' + name : '');
342
return this.attr('data-validation' + name, val);
343
}
344
};
0 commit comments