title: How to get currently selected tab index in jquery UI?
body: <p>In jquery UI, using their newest version, I can't get the ID of the selected tab anymore. I tried <code>ui.index</code> from <a href="https://stackoverflow.com/questions/300078/jquery-ui-tabs-get-currently-selected-tab-index">jQuery UI Tabs Get Currently Selected Tab Index</a>, but it gives me undefined.</p>
  
  <p>Does anyone know the way to do this now?</p>
  
  <pre><code>$( "#tabs" ).bind( "tabsactivate", function(event, ui) { 
      alert(ui.index);
  });
  </code></pre>
  
  <p>In this code, I get the alert every time I select a new tab, but its says undefined.</p>
  
  <p>Thanks</p>