title: Programmatically change Jquery tab focus
body: <p>I'm using a pretty simple implementation of the JQuery Tabs UI element. There is a form in the first tab that I am trying to have load the second tab with the onsubmit event. In ActionScript, I could use:</p>
  
  <pre><code>tabBar.selectedIndex = n;
  </code></pre>
  
  <p>Where <code>selectedIndex</code> is the tab number that has focus.
  Is there a way to get this done in Jquery?</p>