Hi, I''m new to prototype but it seems like an EXELENT framework. But I got a problem with the focusFirstElement when the first element have a tabindex="-1" since when negative number the user are never able to tab the element, so I would not want them to get focus on the element either. Is there really any time when a user want the set the focus on an element with negative tabindex? I added a check on the tabindex in the findFirstElement function so it also check that the tabindex is like or greater then 0. (0 is the default tabindex if nothign is set) findFirstElement: function(form) { return Form.getElements(form).find(function(element) { return element.type != ''hidden'' && !element.disabled && element.getAttribute(''tabindex'') >= 0 && [''input'', ''select'', ''textarea''].include(element.tagName.toLowerCase()); }); }, Is there a place to sugest changes in prototype or is this group it? I just thought maybe other could need the same fix. Hope this can help. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---