$.fn.firstTabIndex = function() {
var minTabIndex = 0;
$(this).find( '[tabindex]' ).each( function() {
- var tabIndex = parseInt( $(this).attr( 'tabindex' ) );
+ var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 );
if ( tabIndex > minTabIndex ) {
minTabIndex = tabIndex;
}
$.fn.lastTabIndex = function() {
var maxTabIndex = 0;
$(this).find( '[tabindex]' ).each( function() {
- var tabIndex = parseInt( $(this).attr( 'tabindex' ) );
+ var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 );
if ( tabIndex > maxTabIndex ) {
maxTabIndex = tabIndex;
}