could anyone suggest a way to add a spinner image to a jQuery Accordion as the accordion loads. I have tried a similar thing to how a spinner image could be added to a jQuery ui tab as seen here - replacing tabs with accordion, but that hasn't worked.
$("#accordion").accordion({
// loading spinner
beforeActivate: function(event, ui) {
ui.newPanel.html('<img src="loading.gif" width="24" height="24" style="vertical-align:middle;"> Loading...');
}
});
Thanks.