Overwrite UI Tabs Cookie
Overwrite UI Tabs Cookie
I´m trying to overwrite the saved tab index of the tab cookie.
I´ve got a Tab with the OnClick Attribute which links to the previous
website (index 0)
If there´s no cookie set or the SelectedTab Index is 0 (from the
Cookie i.e) the Script
should overwrite the index and select the second tab.
Any Ideas? Thanks!
var action_tab_index = $("#example").tabs().data
("selected.tabs");
$tabs = $('#example > ul').tabs({cookie: {expires: 28, name:
'brtcookie'}});
if(selectedTab == 0)
{
$('#example').tabs({ selected: 1 });
}