jquery tabs selection
<p>the jquery code is like this:</p>

<pre><code>    $(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;
    });

});
</code></pre>

<p>and the tabs:</p>

<pre><code>    &lt;ul class="tabs"&gt;
    &lt;li&gt;&lt;a href="#tab1"&gt;Gallery&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#tab2"&gt;Submit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="tab_container"&gt;
    &lt;div id="tab1" class="tab_content"&gt;
        &lt;!--Content--&gt;
    &lt;/div&gt;
    &lt;div id="tab2" class="tab_content"&gt;
       &lt;!--Content--&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>whenever the page loads the 1st tab is opened 1st. but if i want the 2nd tab to show, then how can i do that. like from inside a function 
im loading the page like: window.location="display.php";
when loaded i want the 2nd tab to open how to do that?? also from another function if i want the 1st tab to show how to do that?</p>

<p>thanks in advance..</p>
