title: Disable collapse on clicking twice
body: <p>This is the collapse and working in its default nature. It closes when the user clicks "No". And It opens as well as closes when the user clicks "Yes".</p>
  
  <p>I want to make it in such a way that it closes only when the user clicks "No" and open again only when the User clicks "Yes". If the user clicks "Yes" again, it should remained open.</p>
  
  <p><a href="https://jsfiddle.net/18uyr3g9/" rel="nofollow noreferrer">JSFiddle DEMO</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jQuery('.btn-active').click(function(e) {
    jQuery('.collapse').collapse('hide');
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"/&gt;
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-12"&gt;
        &lt;div class="btn-group btn-group-toggle d-flex btn-active " data-toggle="buttons"&gt;
          &lt;label class="btn btn-primary w-100 active" data-toggle="collapse" data-target="#expolicy"&gt;
            &lt;input type="radio" name="options" id="option1" autocomplete="off"&gt; Yes
          &lt;/label&gt;
          &lt;label class="btn btn-primary w-100"&gt;
            &lt;input type="radio" name="options" id="option2" autocomplete="off"&gt; No
          &lt;/label&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-12"&gt;
        &lt;div class="collapse show" id="expolicy"&gt;
          This is the collapse. It opens/closes when the user clicks "Yes". It should close only when the user clicks "No" and open only when the User clicks "Yes". It is open by default.
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>