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