I am basically building dynamic collapsible content which is called when page change is done.
The creation of the collapsable content is generated on page change and populated dynamically with a number of divs. The first collapsable section is set as open (uncollapsed)
when I go to the previous page and go go back into the dynamic collapsable content page I lose the collapsable sections formatting (css)
-- I do use $page =$(pageSelector);
Tried using -
$page.page();
$.mobile.changePage($page); is breaking page back button.
Code