jQuery-EasyTabs
jQuery-EasyTabs copied to clipboard
Previous and Next buttons not working properly
Hello,
Please check "Previous and Next buttons" option it is not working properly. When we reach the last tab and than click on button it will active all tabs.
Is this due to CSS only, have you checked?
change the click event to...
$('.next-tab, .prev-tab').click(function() { var i = parseInt($(this).attr('rel')); if ( i >= 0 ) { console.log("$(this).attr('rel') = "+$(this).attr('rel')); var tabSelector = $tabs.children('a:eq(' + i + ')').attr('href'); $tabContainer.easytabs('select', tabSelector); } return false; });
Otherwise it seems to want to try and go after a tab with 'rel' undefined and it gets all weird.