title: Linking to a specific tab from another page
body: <p>I have a form with 3 tabs</p>
  
  <pre><code>&lt;div class="tabs"&gt;
     &lt;ul class="tabset"&gt;
       &lt;li&gt;&lt;a class="active"&gt;&lt;span&gt;Shirts&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;Jeans&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;&lt;span&gt;Shoes&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
  
    &lt;div id="1"&gt;
      &lt;p&gt; Shirts &lt;/p&gt;
     &lt;/div&gt;
    &lt;div id="2"&gt;
       &lt;p&gt; Jeans&lt;/p&gt;
     &lt;/div&gt;
  
     &lt;div id="3"&gt;
       &lt;p&gt; Shoes&lt;/p&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like to be able to link back to a specific tab from a results page and make it the active tab. I know that I have to make use of query string in the url from the results page anchor link.</p>
  
  <p>So, if I have the 3 category results pages and each one have the link back to the form as:</p>
  
  <pre><code> &lt;a href="./redefine?tab=id1"&gt;&lt;/a&gt;
   &lt;a href="./redefine?tab=id2"&gt;&lt;/a&gt;
    &lt;a href=".redefine?tab=id3"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>What code I need to use in the form page to make sure this works. I read I have to make sure check with jquery if the parameter exists and make use of the location.hash but not sure how to do that.</p>