skip to Main Content

Html – How to show or hide a DIV programmatically in Bootstrap 5

I have a navbar with several buttons that make divs appear underneath. <a data-bs-toggle="offcanvas" href="#select" role="button" aria-controls="select"></a> <div id="select" class="offcanvas offcanvas-start" tabindex="-1" data-bs-backdrop="false"> Foobar </div> I also need to open these windows programmatically. For example, if I initially use $('#select').collapse('show')…

VIEW QUESTION
Back To Top
Search