Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    Hi Martin,

    Unfortunately that is unavoidable at the moment. I’ve made a note and I’ll see if I can address this in a future update.

    I’ve made a quick fix to work with multiple tabs. Only thing tabs should be in the containers which has id written. And also it requires jQuery. Code from tabs.min.js:

    jQuery(document).ready(function($){
    	$('ul.tabs').each(function(k, ul) {
    		$(this).find('li a').click(function(event){
    			event.preventDefault();
    			$('#' + $(this).parents().eq(2).attr('id') + ' ul.tabs li a').removeClass('active');
    			$(this).addClass('active');
    			$('#' + $(this).parents().eq(2).attr('id') + ' section').hide().removeClass('active');
    			$('#' + $(this).parents().eq(2).attr('id') + ' section' + $(this).attr('href')).show().addClass('active');
    		});
    	});
    });

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple tabs’ is closed to new replies.