Click Event for Collapsible Blocks in jQuery Mobile

I was trying to bind click event for Collapsible Blocks in jQuery Mobile as we do for buttons. But with latest framework update it was not working at all. Spend some time to figure out the events for Collapsible blocks.

$('#my-collaspible').bind('expand', function () {
    alert('Expanded');
}).bind('collapse', function () {
    alert('Collapsed');
});
Did you enjoy this article?
Signup today and receive free updates straight in your inbox. We will never share or sell your email address.

Leave a Reply