Re: Enumerating input fields

Martin Ström
Thu, 22 May 2008 13:38:13 -0000

Not really tested but something like this should get you started:

$(''my_form'').getElements().sortBy(function(element) {
  return parseInt(element.readAttribute(''tabindex'') || 0);
}).each(function(element) {
  // do something
});

/Martin

2008/5/22 anthyon
<anthyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>
> Hi all,
>
> I''m just wondering if there''s a way to enumerate a
form''s input fields
> (and selects and etc) in tab order. Is there a standard or a
> prototypish way to do this?
>
> Anthyon
> >
>



--
burnfield.com/martin