[jQuery] Tabs: get selected tab?
<div>Hello,</div><div>
</div><div>I am using Tabs from jQueryUI. I have a callback function for when the selected tab is shown:</div><div>
</div><div>$('ul.tabs').tabs({</div><div> show: function(event, ui) {</div>
<div> // do stuff</div><div> }</div><div>});</div><div>
</div><div>When the tab is shown, I need to pre-populate its form with values based on cookie data. How can I tell which tab is shown? Or, more specifically, how can I get the shown tab container? Do I have to query for it manually with $('div.ui-tabs-panel:visible)? </div>
<div>
</div><div>Thanks!</div><div>
</div>-Hector