title: HTML data-toggle="collapse" only collapse if it isn't already
body: <p>I want to collapse a div with a button if it is not collapsed already.
  I have a button:</p>
  
  <pre><code>&lt;button data-toggle="collapse" data-target="#aim" ...&gt;&lt;/button&gt;
  </code></pre>
  
  <p>and my <code>div</code>:</p>
  
  <pre><code>&lt;div id="#aim" class="collapse"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I works great but if the <code>div</code> is already open the button close it.</p>
  
  <p>Is there a chance to get collapse it when it isn't already?</p>