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 = {};
|
||||
|
||||
// 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 $([]).add(this.currentForm.elements)
|
||||
.filter(":input")
|
||||
return $(this.currentForm)
|
||||
.find("input, select, textarea")
|
||||
.not(":submit, :reset, :image, [disabled]")
|
||||
.not( this.settings.ignore )
|
||||
.filter(function() {
|
||||
|
||||
Reference in New Issue
Block a user