Posted on Sunday, March 6, 2011 How to preserve selected jQuery accordion after submit Category APEX and jQuery Here is how you can preserve selected jQuery accordion after submit. I have used hidden page item to hold selected accordion index. First, you need create regions and setup jQuery accordion. Then create hidden page item: Display As: Hidden Source Used : Only when current value in session state is null Source Type: Static Assignment (value equals source attribute) Source value or expression: 0 Default value: 0 Default Value Type: Static Text with Session State Substitutions Then add to jQuery accordion option "active" and event "change". Here is example JavaScript where Px_ACTIVE is your hidden item name: <script type="text/javascript"> $(function(){ $("#accordion").accordion({ header:"h2", collapsible:true, active:&Px_ACTIVE., change:function(e,u){ var a=new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=DUMMY",&APP_PAGE_ID.) a.add("Px_ACTIVE",u.options.active); var r=a.get(); } }); }); </script> See more info about jQuery accordion from jQuery UI Demos & Documentation.