I have a jquery accordion on an asp.net aspx weppage. Inside the panes, I have asp.net buttons. When I click on the button, the pane I was in, closes and reloads the page,
$("#accordion").accordion({ heightStyle: "content", collapsible: true, navigation: true });
Setting the navigation property to true will retain the state of the accordion panel.
navigation
true