Well, I was giving just an example and a bad one obviousy. You need to
filter out which tab you want to change. First tab for instance:

$('#example li:eq(0) *:last').text('New first tab label');

--Klaus




On 20 Jan., 10:10, "Stefan Sturm" <[email protected]>
wrote:
> Hello Klaus,
>
> this is no longer working with the latest ui.jQuery svn and jQuery 1.3...
>
> $('#example li *:last').text('New tab label');
> With this code I now change all tabs...
>
> Greetings,
> Stefan Sturm
>
> 2008/10/7 Klaus Hartl <[email protected]>:
>
>
>
> > In this case jQuery is sufficient (no extra tabs method for that):
>
> > $('#example li *:last').text('New tab label');
>
> > I am using "li *:last" because that gets the most inner nested
> > element. If you know that your html has a <a> only inside the <li> you
> > could of course use '#example li a'...
>
> > --Klaus
>
> > On 7 Okt., 18:26, "Stefan Sturm" <[email protected]>
> > wrote:
> >> Hello,
>
> >> how can I change the text on a tab after the element is created?
>
> >> Thanks,
> >> Stefan Sturm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to