I am using jQuery Accordion and need to know when a panel has finished loading. I understand that I need to bind the accordionchange event, but I am really confused from there how I will know when a panel has opened.
If I just put an alert() inside the function it DOES show after the panel has opened, but it also shows after the panel is closed:
$("#campaigns").accordion({
event: 'click',
active: false,
collapsible: true,
autoHeight: false,
heightStyle: "content"
}).bind("accordionchange", function(event, ui) {
alert('Panel opened and closed');
});
How can I only know when the panel has finished opening?
Finally got it working how I wanted. Here is how I know when opening a panel:
Strangely,
changeseems to not be documented…