title: How do I do collapsed="false" in this code
body: <p>I have found this code in here: <a href="https://jqueryui.com/accordion/#collapsible" rel="nofollow noreferrer">https://jqueryui.com/accordion/#collapsible</a></p>
  
  <p>But I do not understand how to do data-collapsed="false" in this code,
  This is my full code:</p>
  
  <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
          });
      });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div role="tablist" class="ui-accordion ui-widget ui-helper-reset" id="accordion"&gt;
      &lt;h3 tabindex="0" data-collapsed="false" 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-accordion-icons ui-state-focus ui-corner-all"&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: 105px;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"&gt;
          &lt;p&gt;Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. 
  Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, 
  condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. 
  Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu 
  ante scelerisque vulputate.&lt;/p&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: 105px;" 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: 105px;" 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: 105px;" 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;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>The problem is every time I just reload the page it show like this:</p>
  
  <p><img src="https://i.stack.imgur.com/Q4aAQ.jpg" alt="enter image description here"></p>
  
  <p>But want like this:
  <img src="https://i.stack.imgur.com/uxM2r.jpg" alt="enter image description here"></p>
  
  <p>Please help me, Thank You.</p>