I want to be able to close or open a collapse using javasript. Any idea?
<button data-toggle="collapse" data-target="#demo">Collapsible</button>
<div id="demo" class="collapse">
<!--Something else here-->
</div>
$("element-selector").collapse('hide')
$("element-selector").collapse('toggle')
$("element-selector").collapse('show')
https://getbootstrap.com/docs/4.0/components/collapse/#methods