From 3a42224bf6ffaa51a6fea62b8e154c35b0f271d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 26 Apr 2011 21:51:23 +0200 Subject: [PATCH] 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). --- jquery.validate.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jquery.validate.js b/jquery.validate.js index 4f4a89045..671386636 100644 --- a/jquery.validate.js +++ b/jquery.validate.js @@ -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() {