I've spent a lot of time searching for a solution to my problem, but all the advice I found is for bootstrap 3 and 4, not version 5.
Below is the code I am currently using:
<div class="p-3">9 Members Online
<a class="p-1 btn btn-info" data-bs-toggle="collapse" id="toggle" href="#hiddenContent" role="button" aria-expanded="false" aria-controls="collapseExample">Show</a>
</div>
<div class="collapse" id="hiddenContent">
<div class="card card-body bg-transparent">
Member 1. <br><br> Member 2.<br><br> Member 3.<br><br> Member 4.<br><br> Member 5.<br><br> Member 6.<br><br> Member 7.<br><br> Member 8.<br><br> Member 9.<br><br>
</div>
</div>
My goal is to change the text "Show" to say "Hide" when clicked on.