[jQuery] Re: Going thrue all form elements

2008-01-14 Thread Ariel Flesler
Oh, I just learnt something new :) Ariel Flesler On 14 ene, 10:35, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > :input will do what you need, but it's slow it's like a $('*') that > > you then apply a complex filter. > > > You can use forms' attribute 'elements' to make it work faster. $ > > ('fo

[jQuery] Re: Going thrue all form elements

2008-01-14 Thread Mike Alsup
> :input will do what you need, but it's slow it's like a $('*') that > you then apply a complex filter. > > You can use forms' attribute 'elements' to make it work faster. $ > ('form').map(function(){ return $.makeArray(this.elements); }); ... unless your form contains elements. For some reaso

[jQuery] Re: Going thrue all form elements

2008-01-14 Thread Ariel Flesler
:input will do what you need, but it's slow it's like a $('*') that you then apply a complex filter. You can use forms' attribute 'elements' to make it work faster. $ ('form').map(function(){ return $.makeArray(this.elements); }); Ariel Flesler On Jan 13, 6:51 pm, "Mike Alsup" <[EMAIL PROTECTED

[jQuery] Re: Going thrue all form elements

2008-01-13 Thread Mike Alsup
> But that would skip all the textarea/select fields... No it won't. It will even include button elements. :input is a jQuery selection expression that finds all form controls. Mike

[jQuery] Re: Going thrue all form elements

2008-01-13 Thread Abdul-Rahman
Oeps, Sorry, Works! thnx On Jan 13, 3:14 pm, "Scott González" <[EMAIL PROTECTED]> wrote: > Use $(':input').each(...) > > On Jan 12, 6:10 pm, Abdul-Rahman <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > I am trying to use the plugin > > ofhttp://fluidproject.org/blog/2008/01/11/jquery-tabindex-p

[jQuery] Re: Going thrue all form elements

2008-01-13 Thread Abdul-Rahman
But that would skip all the textarea/select fields... On Jan 13, 3:14 pm, "Scott González" <[EMAIL PROTECTED]> wrote: > Use $(':input').each(...) > > On Jan 12, 6:10 pm, Abdul-Rahman <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > I am trying to use the plugin > > ofhttp://fluidproject.org/blog

[jQuery] Re: Going thrue all form elements

2008-01-13 Thread Scott González
Use $(':input').each(...) On Jan 12, 6:10 pm, Abdul-Rahman <[EMAIL PROTECTED]> wrote: > Hey guys, > > I am trying to use the plugin > ofhttp://fluidproject.org/blog/2008/01/11/jquery-tabindex-plugin/ > to set the tabindexes for my form. I am going through it by querying > it as following but it