title: Jquery accordion retain the open pane on postback
body: <p>I am trying to retain the opened pane in accordion. This what I have in my page </p>
  
  <pre><code> &lt;div id="accordion"&gt;
      &lt;h3&gt;Applicant Type&lt;/h3&gt;
      &lt;div&gt;                          
          some content 
      &lt;/div&gt;
      &lt;h3&gt;Application Details&lt;/h3&gt;
      &lt;div&gt; 
      &lt;/div&gt;
      &lt;h3&gt;Current Residential Address Details&lt;/h3&gt;
      &lt;div&gt;
          some content 
      &lt;/div&gt;
      &lt;h3&gt;Previous Residential Address Details&lt;/h3&gt;
      &lt;div&gt;
          some content 
      &lt;/div&gt;
      &lt;h3&gt;Originator Details&lt;/h3&gt;
      &lt;div&gt;
          some content 
      &lt;/div&gt;  
  &lt;/div&gt; 
  var leftActiveIndex = parseInt($('#&lt;%=LeftAccordionIndex.ClientID %&gt;').val());
  
   $("#accordion").accordion({
      autoHeight: false,
      event: "mousedown",
      active: leftActiveIndex,
      change: function (event, ui) {
          //var index = $(this).children('h3').index(ui.newHeader);
          var index = $(this).accordion("option", "active");
          $('input[id$=LeftAccordionIndex]').val(index);
      }
  });
  </code></pre>
  
  <p>I go this from this link, 
  <a href="https://stackoverflow.com/questions/2148933/keep-the-current-jquery-accordion-pane-open-after-asp-net-postback">keep-the-current-jquery-accordion-pane-open-after-asp-net-postback</a></p>
  
  <p>But this doesn't seems to be working for me.</p>