tabs("length") does not work, however this does.

var lgt = $('#tabs > ul').tabs("length");
$('#tabs > ul').tabs("select", (lgt -1));

Thanks

On Oct 8, 12:35 pm, 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

Reply via email to