So I have a page where I'm just using the stylized part of the tabs. Clicking on a tab will take you to a new page with that tab active, so almost emulating what they should do but not having 4 large pages within one. For each page, I change the active tab by
$( ".tabs" ).tabs({ active:2 });
and so on. This works fine. Now for the dialog. I have a dialog on this page that also initiates tabs. Since there is information that is nested within many divs, the default functionality for 'tabs' will not work. From what I understand, when you click a tab it looks for the next div. 3 tabs = only 3 divs. So in this case, I am just using tabs for stylizing again and just show/hiding the information needed for each different tab (3 tabs total) and unbinding the click.
$('.tabsDialog > ul > li > a').unbind('click');
So, naturally my thought is with the click function to hide the previous div and show the new one would be to activate this new tab. So something like this
$('a.globalSet').on('click',function(){
$('div.timeSet').hide();
$('div.globalSet').fadeIn();
$('div.comManager').hide();
$( "li.timeSet" ).tabs({ active:1 });
});
and this is not activating my new tab. I've tried addClass .ui-tabs-active and still no luck. Any ideas? Thanks in advance. jsfiddle: http://jsfiddle.net/tRKSv/2/