I have successfully set up a few buttons that can show and hide divs on click. However, I am wondering if it is possible to hide all other divs when one is showing, and also have "divone" show up on load.
Buttons:
<button class="btn btn-outline-primary" type="button" data-toggle="collapse" data-target="#divone">One</button>
<button class="btn btn-outline-primary" type="button" data-toggle="collapse" data-target="#divetwo">Two</button>
<button class="btn btn-outline-primary" type="button" data-toggle="collapse" data-target="#divthree">Three</button>
Divs:
<div id="divone" class="collapse">Div one content here</div> <div id="divetwo" class="collapse">Div two content here</div> <div id="divthree" class="collapse">Div three content here</div>