title: close a section of a accordion in jquery
body: <p>It's a simple question, but i don't know how do it. I think there's a way to close all of the sections in the accordion attached to a event click, but i haven't found a method that will allow it to be done. I tried this:</p>
  
  <pre><code>$(document).ready(initialize);
  
  $("#accordion").accordion("destroy");
  
  $("#accordion").accordion({
      collapsible: true,
      active: false
  });
  
  function initialize() {
  
      $(".btnOk").click(function (e) {
      e.preventDefault();
      $("#accordion").accordion("active", false);
      }
  }
  </code></pre>