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 gives me back inputs, then the textareas, en > then the selects (and I would like the elements based on the > occurrence in stead as a collection of inputs, and then textareas, and > then selects. > > This is the code I am using > > $("form input, form textarea, form select").each(function(i){ > $(this).tabindex(i+1); > }); > > does someone have a other solution?