Does anyone know any other way to capture the event of expanding or collapsing a component marked with data-role=\"collapsible\"
apart from the onclick
I don't think there is another way to do this. I do not believe that you can utilize animationComplete
in this case as described here:
http://jquerymobile.com/test/docs/api/events.html
Maybe you can utilize certain class changes on the specific elements, which in fact isn't better than binding an onclick event of the header.