jquery and php, how to go to a specific tab after posting a form?
<p>i have a simple jquery tab and a form. When i post the form the page refreshes and it goes to the default tab. you can see the code in <a href="http://jsfiddle.net/patrioticcow/HysJ6/13/" rel="nofollow">jsfiddle</a> also here:</p>

<pre><code>&lt;ul class="tabs"&gt;
&lt;li&gt;&lt;a href="#tab1"&gt;Home&lt;/a&gt; | &lt;/li&gt;
&lt;li&gt; | &lt;a href="#tab2"&gt;Top 10&lt;/a&gt; | &lt;/li&gt;
&lt;/ul&gt;

&lt;div id="tab1" class="tab_content"&gt;234&lt;/div&gt;
&lt;div id="tab2" class="tab_content"&gt;
&lt;form method="post"&gt; 
&lt;select name="item"&gt; 
&lt;option&gt;Paint&lt;/option&gt;&lt;option&gt;Brushes&lt;/option&gt;
&lt;/select&gt;
Quantity: &lt;input name="quantity" type="text" /&gt; 
&lt;input type="submit" /&gt;
&lt;/form&gt;
&lt;/div&gt;

 //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#none').removeClass('visible');
    $('ul.tabs li#none').addClass('none');
    $("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"); 
    $(activeTab).fadeIn(); //Fade in the active ID content
    return false;
});
</code></pre>

<p>so again, what i want to accomplish is when i submit a form to redirect back to the tab of my choice.</p>

<p>any ideas?</p>

<p>thanks</p>
