title: getting a tab name instead of the index
body: <p>I have an application that updates databases based on the tabs name been clicked on. I need to be able to get the tab's name using the index number. </p>
  
  <pre><code>&lt;div id="id_tabs" class="tabs" &gt; &lt;/div&gt;
  &lt;ul class="d_tabs"&gt;
    &lt;li id="id_tab_home"&gt;&lt;a href="#tab_home"&gt;Home&lt;/div&gt;     &lt;/a&gt;&lt;/li&gt;
    &lt;li id="id_tab_first"&gt;&lt;a href="#tab_first"&gt;First&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li id="id_tab_second"&gt;&lt;a href="#tab_second"&gt;Second&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>