Skip to content

Commit

Permalink
Don't use form.elements as that isn't supported in jQuery 1.6 anymore.
Browse files Browse the repository at this point in the history
ITs buggy as hell anyway (IE6-8: form.elements === form).
  • Loading branch information
jzaefferer committed Apr 26, 2011
1 parent bb4a84a commit 3a42224
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jquery.validate.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 3a42224

Please sign in to comment.