6 * Finds the lowerst tabindex in use within a selection
8 * @return number Lowest tabindex on the page
10 $.fn
.firstTabIndex = function() {
12 $(this).find( '[tabindex]' ).each( function() {
13 var tabIndex
= parseInt( $(this).attr( 'tabindex' ), 10 );
14 if ( tabIndex
> minTabIndex
) {
15 minTabIndex
= tabIndex
;
22 * Finds the highest tabindex in use within a selection
24 * @return number Highest tabindex on the page
26 $.fn
.lastTabIndex = function() {
28 $(this).find( '[tabindex]' ).each( function() {
29 var tabIndex
= parseInt( $(this).attr( 'tabindex' ), 10 );
30 if ( tabIndex
> maxTabIndex
) {
31 maxTabIndex
= tabIndex
;