title: External Button to open/close Accordion
body: <p>I need help to open or close accordion with extra buttons.</p>
  
  <p>Here is example of the accordion with buttons:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
      $( "#tab1" ).accordion({
          collapsible: true, active: false, heightStyle: "content"
      });
      $( "#tab2" ).accordion({
          collapsible: true, active: false, heightStyle: "content"
      });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"&gt;
  
  &lt;div id="tab1"&gt;
      &lt;h3&gt;Tab 1&lt;/h3&gt;
      &lt;div&gt;1234567890 Text&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="tab2"&gt;   
      &lt;h3&gt;Tab 2&lt;/h3&gt;
      &lt;div&gt;1234567890 Text 2&lt;/div&gt;
  &lt;/div&gt;
  &lt;button&gt;&lt;span&gt;Open/Close Tab1&lt;/span&gt;&lt;/button&gt;
  &lt;button&gt;&lt;span&gt;Open/Close Tab2&lt;/span&gt;&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thank you for your help!</p>