title: How to get active tab index from TabContainer
body: <p>Currently I am using this line of code in my JavaScript</p>
  
  <pre><code>var tabIndex = $(':focus').attr('tabIndex'); 
  </code></pre>
  
  <p>However this constantly fails to get the active index.  </p>
  
  <p>Here is asp:TabContainer header in case this helps. I have also tried document.GetElementById, however to no avail as well. </p>
  
  <pre><code>    &lt;asp:TabContainer ID="AdvOrBasicSearch" runat="server" ActiveTabIndex="0"&gt;
  </code></pre>