Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)