I am using the jQuery accordion plugin to make an accordion of some data. Then I want the user to be able to add more data to the accordian. I have setup the accordion to function properly, then I've made a function that prepends a "list item" to the accordion that matches the accordion semantics.
Is it possible to "update" the accordion so that it works with the newly added element, without saving the new data to database and refreshing the page?
Something like this:
.accordion('refresh')
Or something like the live event added in jQuery 1.3, anybody got a clue?