2 * Finds the lowerst tabindex in use within a selection
4 * @return Integer of lowest tabindex on the page
6 jQuery.fn.firstTabIndex = function() {
8 jQuery(this).find( '[tabindex]' ).each( function() {
9 var tabIndex = parseInt( jQuery(this).attr( 'tabindex' ) );
10 if ( tabIndex > minTabIndex ) {
11 minTabIndex = tabIndex;
17 * Finds the highest tabindex in use within a selection
19 * @return Integer of highest tabindex on the page
21 jQuery.fn.lastTabIndex = function() {
23 jQuery(this).find( '[tabindex]' ).each( function() {
24 var tabIndex = parseInt( jQuery(this).attr( 'tabindex' ) );
25 if ( tabIndex > maxTabIndex ) {
26 maxTabIndex = tabIndex;