Beste php programmeurs,

Ik ben nieuw hier (dus weet niet hellemaal of dit in de correcte topic staat)

Ik heb voor een project waar ik mee bezig ben een jquery table tabs 'plugin' gevonden alleen is deze gekoppeld natuurlijk aan 1 instance(per page) maar nu doet het probleem zich voor dat ik 2 tabellen op 1 pagina wil hebben met de tabs..

nu ben ik redelijk nieuw op het jquery gebied dus zou niet hellemaal weten hoe ik dit zou moeten doen om dit werkend te krijgen (ik heb gehoord dat maby met een child /parent moet gaan werken maar weet niet hoe ik dat opzet)

Dit is de functie waar ik het over heb:

	$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

    //On Click Event
    $("ul.tabs li").click(function() {

        $("ul.tabs li").removeClass("active"); //Remove any "active" class
        $(this).addClass("active"); //Add "active" class to selected tab
        $(".tab_content").hide(); //Hide all tab content

        var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
        $(activeTab).fadeIn(); //Fade in the active ID content
        return false;
    });
});


Ik heb al geprobeerd om er een duplicaat van de maken en er een nieuwe instance van te maken maar die pogingen zijn tot op heden mislukt.

b.v.d.
Mirjam

Reageren