Hi Christian,

To change the caption of the third accordion tab (i.e. index=2) try:

   $(".ui-accordion-header").eq(2).find("a").text("New Text Here")


To hide the third accordeon item (i.e. index=2) is a little trichier
since the heading and the contents are siblings.  This seems to work
for me.

  //  Hide the third header....         ...and its "contents"
  $(".ui-accordion-header").eq(2).hide().next().hide()

I hope this helps.

**--**  Steve




On Sep 25, 5:41 am, Christian <[email protected]> wrote:
> Yes, this is my question, how can I hide and show one single
> "accordion tab" from the whole accordion?
>
> And a second question is, how can I change per JS the caption of one
> "accordion tab"?
>
> Best regards
--~--~---------~--~----~------------~-------~--~----~
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