title: How do I programmatically select a tab using jQuery Mobile?
body: <p>I am new to jQuery 1.4.3 and Mobile 1.10 and would like to use the tabs widget. I am wondering how to programmatically make a tab active?</p>
  <p>Please see the <a href="http://jsfiddle.net/lizhou/psfpm52w/" rel="nofollow noreferrer">JSFiddle</a>. If I make the 2nd tab as active, the 2nd tab's content does not show until the 2nd tab is clicked.</p>
  <pre><code>&lt;div data-role=&quot;page&quot;&gt;
      &lt;div data-role=&quot;tabs&quot;&gt;
          &lt;div data-role=&quot;navbar&quot;&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href=&quot;#one&quot;&gt;one&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href=&quot;#two&quot; class=&quot;ui-btn-active&quot;&gt;two&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class=&quot;ui-content&quot; id=&quot;one&quot;&gt;tab one content&lt;/div&gt;
          &lt;div class=&quot;ui-content&quot; id=&quot;two&quot;&gt;tab two content&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>