Try:

$('#example').tabs({
    add: function(ui) {
        ui.tab.title = "foo";
    }
});


--Klaus



On Apr 5, 1:17 am, rolfsf <[EMAIL PROTECTED]> wrote:
> How do I set the title attribute of the anchor element of a newly
> created tab?
>
> In one case, I'm generating the tab label (tab name) and panel ID from
> the title attribute of my triggering element (an anchor tab for
> simplicity), but I'm truncating tab labels longer than 25 characters.
> I want the full (long) label to be available to the user via hover.
> Hence, I want to set the title attribute as I'm generating the new
> tab... but I don't quite understand how I do that
>
> my basic function is
>
> $('#wrapper > ul.tabs-nav').tabs('add', tabID, tabName);
>
> tabID and tabName are the results of some truncating and cleaning
>
> var fullName is a variable that holds the full text I'd like to use as
> a title attribute
>
> any help is much appreciated
>
> rolfsf

Reply via email to