title: Change active tab using jquery
body: <p>I have 2 tabs on my page (using Bootstrap):</p>
  
  <pre><code>&lt;ul class="nav nav-tabs" id="myTab"&gt;
    &lt;li class="active"&gt;&lt;a href="#home"&gt;Home&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#profile"&gt;Profile&lt;/a&gt;&lt;/li&gt; 
  &lt;/ul&gt;
  
  &lt;div class="tab-content"&gt;
    &lt;div class="tab-pane active" id="home"&gt;...&lt;/div&gt;
    &lt;div class="tab-pane" id="profile"&gt;...&lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>When I send a POST request from the profile tab, I want to make this tab active, how can I do this?</p>