Hi all,
I am using the jquery ui in a site where the list is dynamically
populated based on user choices. The first time I apply the accordian
(with a static list defined in the HTML file) everything is fine, but
when I delete the old list contents, replace new contents and apply
accordian, the list starts with all list contents expanded.
How do I force the accordian to cloas all but the selected item?
FYI, when the list is to be repopulated I:
1. call accordian("destroy") on the appropriate <ul>.
2. call empty() on the same <ul>.
3. Run through a set of data and append new <li> elements to the <ul>
4. Call accordian on the <ul> with clearStyle:true and
autoHeight:false.
I tried calling accordian("activate", 0) afterwards and that didn't
help either.
Thanks in advance :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---