2 * Finds the lowerst tabindex in use within a selection
4 * @return number Lowest tabindex on the page
6 $.fn
.firstTabIndex = function() {
8 $(this).find( '[tabindex]' ).each( function() {
9 var tabIndex
= parseInt( $(this).attr( 'tabindex' ) );
10 if ( tabIndex
> minTabIndex
) {
11 minTabIndex
= tabIndex
;
18 * Finds the highest tabindex in use within a selection
20 * @return number Highest tabindex on the page
22 $.fn
.lastTabIndex = function() {
24 $(this).find( '[tabindex]' ).each( function() {
25 var tabIndex
= parseInt( $(this).attr( 'tabindex' ) );
26 if ( tabIndex
> maxTabIndex
) {
27 maxTabIndex
= tabIndex
;