search for: findfirstelement

Displaying 1 result from an estimated 1 matches for "findfirstelement".

2006 Oct 26
0
Prototype: focusFirstElement and tabindex -1 ?
...ave 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...