I'm in the process of developing an accordion button feature. I have a collection of buttons on the side menu that trigger information display on the side. The goal is to create an accordion effect where only one row of information is visible at a time.
Can anyone provide guidance on how to achieve this?
<div class="col-sm-2 row side">
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#f1" data-parent="#accordion">Farm Fresh Produce</button>
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#f2" data-parent="#accordion">Building 1</button>
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#f3" data-parent="#accordion">Building 2</button>
</div>
<section class="col-sm-9 col-sm-offset-1">
<div class="row collapse" id="f1">
<p>Stuff 1</p>
</div>
<div class="row collapse " id="f2">
<p>Stuff 2</p>
</div>
<div class="row collapse " id="f3">
<p>Stuff 3</p>
</div>
</section>