Or like described in the FAQ: var $tabs = $('#example').tabs({ add: function(e, ui) { $tabs.tabs('select', '#' + ui.panel.id); } });
http://docs.jquery.com/UI/Tabs#...immediately_select_a_just_added_tab.3F --Klaus On 8 Okt., 12:35, BB <[EMAIL PROTECTED]> wrote: > Try: > $("#tabs > ul").tabs( "add", "url/index.htm", "label" ).tabs("select", > $("#tabs > ul").tabs("length")); > > On 8 Okt., 11:06, fleabo <[EMAIL PROTECTED]> wrote: > > > I'm using the UI Tabs (very nice). > > > I need to create a new remote tab and then select it, however the only > > way I can see reading the documents is to select it by index, which > > will not work for me as one or more new tabs can be created, so it not > > possible to know in advance the index. > > > Is it possible to add a fragment-identifier to a tab created remotely, > > or get the index of the newly created tab? > > > thanks