Bootstrap5 folding can easily show and hide content. Case analysis To control the hiding and display of content, you need to use the 7.20.1. Example ¶
<button data-bs-toggle="collapse" data-bs-target="#demo">foldbutton>
<div id="demo" class="collapse">
Here are some test contents...
div>
.collapse class is used to specify a collapse element (< div > in the instance); clicking the button switches between hiding and showing. or