-------- Original-Nachricht -------- Datum: Fri, 13 Oct 2006 11:57:41 +0100 Von: "Sam Collett" <[EMAIL PROTECTED]> An: "jQuery Discussion." <discuss@jquery.com> Betreff: Re: [jQuery] Form plugin revisited ;-)
> On 13/10/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > > An idea to boost the performance of the formToArray method while > retaining order: > > $('*', context).filter(':input')... > > > > -- Jörn > > That would remove textarea's and buttons though (or does :input > already take that into account?) > > Would it really boost performance as you are still getting all the > elements in the first place and then applying a filter? :input's implementation: input: "a.nodeName.toLowerCase().match(/input|select|textarea|button/)" So selecting $(':input', context) should be the same as $('*', context).filter(':input'), but faster. -- Jörn -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/