jQuery UI Tabs selected index

jQuery UI Tabs selected index

Hi,

I am trying to figure out how to solve an issue where I want to select the previously active tab. I have been playing around with cookies to store the tab index.

But now my problem is, how can I use the tab index to manipulate content in the specified tab index?

for example what can someone do when you retrieve the selected index? Is there a way to manipulate the content of the selected index?

  1. var $tabs = $('#example').tabs();
    var selected = $tabs.tabs('option', 'selected'); // => 0