title: How to close collapsible by clicking button
body: <p>I was try to make wordpress widget design with my this code:
  My cancel button is not working working?</p>
  
  <blockquote>
    <p>Here is my full code:</p>
  </blockquote>
  
  <pre><code>&lt;!DOCTYPE html&gt;
      &lt;html lang="en"&gt;&lt;head&gt;
      &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;title&gt;jQuery UI Accordion - Collapse content&lt;/title&gt;
        &lt;link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"&gt;
    &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
    &lt;script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" href="/resources/demos/style.css"&gt;
        &lt;script&gt;
        $(function() {
          $( "#accordion" ).accordion({
            collapsible: true,
            active: false
          });
        });
  
        $(function() {
          $( "#aas" ).accordion({
             disabled: true
          });
        });
        &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;table width="100%" border="1"&gt;
        &lt;tr&gt;
          &lt;td width="34%"&gt;&lt;h2&gt;AAAA&lt;/h2&gt;
          &lt;p&gt;&lt;div role="tablist" class="ui-accordion ui-widget ui-helper-reset" id="accordion"&gt;
        &lt;h3 tabindex="0" aria-expanded="false" aria-selected="false" aria-controls="ui-id-2" id="ui-id-1" role="tab" class="ui-accordion-header ui-state-default ui-corner-all ui-accordion-icons"&gt;&lt;span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"&gt;&lt;/span&gt;Section 1&lt;/h3&gt;
        &lt;div aria-hidden="true" role="tabpanel" aria-labelledby="ui-id-1" id="ui-id-2" style="display: none; height: 189.8px;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"&gt;
  
         &lt;form action="" method="post"&gt;
  
      &lt;input type="radio" name="AAAA" value="AAAA_left" checked&gt;
      AAAA Left &amp;nbsp;
  
      &lt;input type="radio" name="AAAA" value="AAAA_right"&gt;
      AAAA Right&lt;br&gt;
      &lt;br&gt;
      &lt;input name="submit8" type="submit" value="Add Widget"&gt; &amp;nbsp;&amp;nbsp; &lt;input name="submit9" id="aas" class="accordion" type="submit" value="Cancel"&gt;        
         &lt;/form&gt;
        &lt;/div&gt;
        &lt;h3 tabindex="-1" aria-expanded="false" aria-selected="false" aria-controls="ui-id-4" id="ui-id-3" role="tab" class="ui-accordion-header ui-state-default ui-corner-all ui-accordion-icons"&gt;&lt;span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"&gt;&lt;/span&gt;Section 2&lt;/h3&gt;
        &lt;div aria-hidden="true" role="tabpanel" aria-labelledby="ui-id-3" id="ui-id-4" style="display: none; height: 189.8px;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"&gt;
          &lt;p&gt;Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit 
      amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis 
      porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non 
      quam. In suscipit faucibus urna. &lt;/p&gt;
        &lt;/div&gt;
        &lt;h3 tabindex="-1" aria-expanded="false" aria-selected="false" aria-controls="ui-id-6" id="ui-id-5" role="tab" class="ui-accordion-header ui-state-default ui-corner-all ui-accordion-icons"&gt;&lt;span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"&gt;&lt;/span&gt;Section 3&lt;/h3&gt;
        &lt;div aria-hidden="true" role="tabpanel" aria-labelledby="ui-id-5" id="ui-id-6" style="display: none; height: 189.8px;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"&gt;
          &lt;p&gt;Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque
       lobortis. Phasellus pellentesque purus in massa. Aenean in pede. 
      Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed 
      commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis 
      leo purus venenatis dui. &lt;/p&gt;
          &lt;ul&gt;
            &lt;li&gt;List item one&lt;/li&gt;
            &lt;li&gt;List item two&lt;/li&gt;
            &lt;li&gt;List item three&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        &lt;h3 tabindex="-1" aria-expanded="false" aria-selected="false" aria-controls="ui-id-8" id="ui-id-7" role="tab" class="ui-accordion-header ui-state-default ui-corner-all ui-accordion-icons"&gt;&lt;span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"&gt;&lt;/span&gt;Section 4&lt;/h3&gt;
        &lt;div aria-hidden="true" role="tabpanel" aria-labelledby="ui-id-7" id="ui-id-8" style="display: none; height: 189.8px;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"&gt;
          &lt;p&gt;Cras dictum. Pellentesque habitant morbi tristique senectus et 
      netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis
       in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean 
      lacinia mauris vel est. &lt;/p&gt;&lt;p&gt;Suspendisse eu nisl. Nullam ut libero. 
      Integer dignissim consequat lectus. Class aptent taciti sociosqu ad 
      litora torquent per conubia nostra, per inceptos himenaeos. &lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;&lt;/p&gt;&lt;/td&gt;
          &lt;td width="33%"&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td width="33%"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>I want to close collapsible by "Cancel" button, </p>
  
  <p><img src="https://i.stack.imgur.com/7X5cr.jpg" alt="enter image description here"></p>
  
  <p>I was try this code for closing that,</p>
  
  <pre><code>&lt;script&gt;
    $(function() {
      $( "#aas" ).accordion({
         disabled: true
      });
    });
    &lt;/script&gt;
  </code></pre>
  
  <p>but it do not work.
  Please help me. Thank You.</p>