title: jquery ui tabs stay on tab after form submit
body: <p>Hi I'm using jQuery ui tabs Widget in a page with two tabs. Each page contains one form with the same page as an action.
  I need to stay in the tab where the form was submitted after the form is submitted.
  How can I accomplish that?.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;div id="tabs"&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#tabs-1"&gt;Tab 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#tabs-2"&gt;Tab 2&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;div id="tabs-1"&gt;
      &lt;p&gt;I'm Tab1.&lt;/p&gt;
         &lt;p&gt;I'm a Form using GET Method, passing values to this same page:&lt;br&gt;&lt;/p&gt;
         &lt;p&gt;&lt;form name="input" action="index.php" method="GET"&gt;
         &lt;input type="text" name="value" id="somevalue" style="width:150px;"&gt; &lt;br&gt;
         &lt;/form&gt;&lt;/p&gt;
      &lt;?
      if (isset($_GET)) {echo ($_GET['value']);}
      ?&gt;
    &lt;/div&gt;
    &lt;div id="tabs-2"&gt;
      &lt;p&gt;I'm Tab2.&lt;/p&gt;
       &lt;p&gt;I'm a Form using GET Method, passing values to this same page:&lt;br&gt;&lt;/p&gt;
         &lt;p&gt;&lt;form name="input" action="index.php" method="GET"&gt;
         &lt;input type="text" name="value2" id="somevalue" style="width:150px;"&gt; &lt;br&gt;
         &lt;/form&gt;&lt;/p&gt;
      &lt;?
         if (isset($_GET)) {echo ($_GET['value2']);}
      ?&gt;
    &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in advance.
  Sebastian</p>