title: How to retain in current tab after submitting the form
body: <p>My problem is i want to retain the current tab even after submitting the form or refreshing the page</p>
  
  <p>My View File Looks like this:</p>
  
  <pre><code>&lt;ul class='tabs'&gt;
          &lt;li&gt;&lt;a href='#tab1'&gt;Tab 1&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href='#tab2'&gt;Tab 2&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;div id='tab1'&gt;
          &lt;h3&gt;Section 1&lt;/h3&gt;
          &lt;p&gt;Lorem ipsum dolor sit amet, consssectetur adipiscing elit. Donec lobortis placerat dolor id aliquet. Sed a orci in justo blandit commodo. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.&lt;/p&gt;
              &lt;form id="form1" action="" method="post"&gt;            
    &lt;input id="button-1" name="" type="submit" /&gt;
  &lt;/form&gt;
      &lt;/div&gt;
  &lt;div id='tab2'&gt;
  &lt;a name="tab2"&gt;&lt;/a&gt;
          &lt;h3&gt;Section 2&lt;/h3&gt;
          &lt;p&gt;Aenean et est tortor. In pharetra pretium convallis. Mauris sollicitudin ligula non mi hendrerit varius. Fusce convallis hendrerit mauris, eu accumsan nisl aliquam eu.&lt;/p&gt;
  
    &lt;form id="form2" action="" method="post"&gt;            
    &lt;input id="button-2" name="" type="submit" /&gt;
  &lt;/form&gt;
      &lt;/div&gt;
  &lt;div&gt;
  &lt;h2&gt;RESULTS &lt;/h2&gt;
  &lt;/div&gt;    
  </code></pre>
  
  <p>Now i want to to be in the same tab in which i click the submit button even after post back ..</p>
  
  <p>Please help me to resolve this problem..</p>
  
  <p>Thanks</p>