mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-20 09:11:40 +01:00
Don't use form.elements as that isn't supported in jQuery 1.6 anymore.
ITs buggy as hell anyway (IE6-8: form.elements === form).
This commit is contained in:
5
jquery.validate.js
vendored
5
jquery.validate.js
vendored
@@ -430,9 +430,8 @@ $.extend($.validator, {
|
|||||||
rulesCache = {};
|
rulesCache = {};
|
||||||
|
|
||||||
// select all valid inputs inside the form (no submit or reset buttons)
|
// select all valid inputs inside the form (no submit or reset buttons)
|
||||||
// workaround $Query([]).add until http://dev.jquery.com/ticket/2114 is solved
|
return $(this.currentForm)
|
||||||
return $([]).add(this.currentForm.elements)
|
.find("input, select, textarea")
|
||||||
.filter(":input")
|
|
||||||
.not(":submit, :reset, :image, [disabled]")
|
.not(":submit, :reset, :image, [disabled]")
|
||||||
.not( this.settings.ignore )
|
.not( this.settings.ignore )
|
||||||
.filter(function() {
|
.filter(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user