title: How to use data-toggle in a form action or window.location(PHP)?
body: <p>I'm trying to let my page jump to a tab section. I can do it in this way:</p>
  
  <pre><code>&lt;a data-toggle="tab" href="SectionB"&gt;Go to Add Event Tab&lt;/a&gt;
  </code></pre>
  
  <p>then it will go to the Event Tab after I click it. </p>
  
  <p>Is there any way I can do it in &lt; form action=" "> or window.location? So when I click on the submit button, it will go to the Add Event tab after insert data into database.</p>
  
  <p>Code for tabs:</p>
  
  <pre><code>&lt;div class="nav-tabs" role="navigation"&gt;
      &lt;ul class="nav nav-tabs" data-tabs="tabs"&gt;
          &lt;li class="active"&gt;&lt;a data-toggle="tab" href="#SectionA"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a data-toggle="tab" href="#SectionB"&gt;Add Event&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a data-toggle="tab" href="#SectionC"&gt;Add Top Story&lt;/a&gt;&lt;/li&gt;                        
      &lt;/ul&gt;
  &lt;/div&gt;     
  &lt;div id="my-tab-content" class="tab-content"&gt;
      &lt;div class="tab-pane active" id="SectionA"&gt;
          &lt;?php
          include_once('Welcome.html');
          ?&gt;
      &lt;/div&gt;
      &lt;div class="tab-pane" id="SectionB"&gt;
          &lt;?php
          include_once('AddEvent.php');
          ?&gt;
      &lt;/div&gt;
      &lt;div class="tab-pane" id="SectionC"&gt;
          &lt;?php
          include_once('AddTopStory.php');
          ?&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>AddEvent.php form:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;form name="addevent" class="form" method="post" onsubmit="return validateEventForm()"&gt;
      &lt;p&gt;&lt;br&gt;&lt; button name="addevent" class="btn btn-sm btn-primary pull-right" type="submit"&gt;Add Event&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt; 
  </code></pre>