var $startTabIndex = parseInt($('.MainContent :input').eq(0).attr('tabindex')); $('.MainContent :input').each(function(idx,elem){ $(elem).attr('tabindex',$startTabIndex + idx); });
Having this issue. However, I cannot get this to correct it.