title: bootstrap .tab('show') is not working from another method
body: <p>I am calling bootstrap tab from another function. I wonder why this works</p>
  <pre><code>if (!$('#' + sPagerName).find('a[href$=&quot;' + sTabName + '&quot;]').parents(&quot;li&quot;).hasClass('active')){
    $('#' + sPagerName).find('a[href$=&quot;' + sTabName + '&quot;]').trigger(&quot;click&quot;);
  }
  </code></pre>
  <p>And this does not</p>
  <pre><code>$('#' + sPagerName)(' a[href=&quot;#' + sTabName + '&quot;]').tab('show');
  </code></pre>
  <p>Is this the reason <code>.tab('show')</code> is not called from another function.</p>