Skip to content

Commit 89a5994

Browse files
author
tom bertrand
committed
Fixed issue where form submit was sending DISABLED inputs
1 parent b3d17fd commit 89a5994

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dist/jquery.validation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Licensed under the MIT license
55
*
66
* @author Tom Bertrand
7-
* @version 1.5.3 (2015-06-14)
7+
* @version 1.5.3 (2015-07-02)
88
* @link http://www.runningcoder.org/jqueryvalidation/
99
*/
1010
;
@@ -368,7 +368,7 @@
368368

369369

370370
$.each(
371-
node.find('input:not([type="submit"]), select, textarea'),
371+
node.find('input:not([type="submit"]), select, textarea').not(':disabled'),
372372
function(index, input) {
373373

374374
input = $(input);
@@ -380,7 +380,7 @@
380380
formData[inputName] = value;
381381
}
382382

383-
if (!input.attr('disabled') && (!!input.attr(_data.validation) || !!input.attr(_data.regex))) {
383+
if (!!input.attr(_data.validation) || !!input.attr(_data.regex)) {
384384
if (!validateInput(input[0], value)) {
385385
isValid = false;
386386
}

0 commit comments

Comments
 (0)