title: bootstrap 4 accordion not working correctly it work only for first element
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css"&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;div id="accordion"&gt;
    &lt;div class="card"&gt;
      &lt;div class="card-header"&gt;
        &lt;a class="card-link" data-toggle="collapse" data-parent="#accordion" href="#collapseOne"&gt;
                      Collapsible Group Item #1
                  &lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="collapseOne" class="collapse show"&gt;
        &lt;div class="card-body"&gt;
          Lorem ipsum..
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="card"&gt;
      &lt;div class="card-header"&gt;
        &lt;a class="collapsed card-link" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"&gt;
                      Collapsible Group Item #2
                  &lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="collapseTwo" class="collapse"&gt;
        &lt;div class="card-body"&gt;
          Lorem ipsum..
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="card"&gt;
      &lt;div class="card-header"&gt;
        &lt;a class="collapsed card-link" data-toggle="collapse" data-parent="#accordion" href="#collapseThree"&gt;
                      Collapsible Group Item #3
                  &lt;/a&gt;
      &lt;/div&gt;
      &lt;div id="collapseThree" class="collapse"&gt;
        &lt;div class="card-body"&gt;
          Lorem ipsum..
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>this accordion code not working in my html project.
  I tried too many time but failed to worked it successfully.</p>
  
  <p>also tried w3school snippet above. first one is working very nice but whenever I am trying to collapse second one it not working. it will collapse for couple of milli seconds after that it will automatically get display none property.</p>
  
  <p>I am also tried to active collapse via jquery but the result is same. </p>