Why don't you put the desired label in the first place?

$('#tabs').tabs('add', '#new', 'Label');

Other than that you could utilize the add callback:

$('#tabs').tabs({
    add: function(event, ui) {
        // add additional html to the tab
        $('span', ui.tab).html(...);
    }
});

Or you can change the tabTemplate option and add that html there...


--Klaus




On 20 Feb., 06:01, Paul Georges <sinst...@gmail.com> wrote:
> hey guys and gals,
>
> http://docs.jquery.com/UI/Tabs
>
> followed the above docs but couldn't quite add tabs correctly yet. i
> can add a tab, yes, but then i can't change it's label or innerHTML.
> how can i do this?
>
> cheers!
>
> Paul!

Reply via email to