i'm using this code to animate a collapsible content in a html5+jquryMobile app...i add it to my head:
$(document).on('expand', '.ui-collapsible', function() {
$(this).children().next().hide();
$(this).children().next().slideDown(500);
})
$(document).on('collapse', '.ui-collapsible', function() {
$(this).children().next().slideUp(500);
});
it works fine when i click on the collapsible head...i'd like to use it for all my collapsible elements but in some pages i'd like to have the animation automatically after the page is loaded... some one can help me?!?