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 <[EMAIL PROTECTED]>:
>
> 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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to