title: How can I get a tabcontainer ID using jquery or javascript?
body: <p>I have a tabcontainer in an updatepanel and I would like to display gridview below the tabcontainer. inside of tab container, it is ok to change when I press each tabs but I cannot make changes in a gridview when tab clicks.</p>
  
  <p>Currently I can see that the javascript as below is working as I confirmed using alert.</p>
  
  <pre><code>&lt;script type="text/javascript" src="Scripts/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="Scripts/jquery-ui-1.8.13.custom.min.js"&gt;
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function tabClick() {
  
      var selected_tab = $("#TabContainer1").tabs();
  
  
      alert(selected_tab);
      return;
  }
  </code></pre>
  
  <p>I have a tabcontainer as below</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="EmployeeInfoUpdatePanel" runat="server"&gt;
      &lt;ContentTemplate&gt;
      &lt;div style="padding-left:205px"&gt;
          &lt;asp:TabContainer ID="TabContainer1" runat="server" Width="955px" 
              Height="350px"  CssClass="fancy fancy-green" ActiveTabIndex="0" OnClientActiveTabChanged="tabClick"&gt;
              &lt;asp:TabPanel ID="companyTab" HeaderText="Company" runat="server"  ForeColor="Black"&gt;  
                  &lt;ContentTemplate&gt;
                         codes....
  </code></pre>
  
  <p>I have searched and found some codes such as tab.get_activetab however it doesnt work. if i type selected_tab. and visual studio came up with options that I can choose however there is no options for get_activetab or _activeTabIndex</p>
  
  <p>I would like to get a active tab ID and pass the parameter to the C# code.</p>
  
  <p>Is it possible??</p>
  
  <p>Can someone please help?</p>
  
  <p>Thanks</p>