Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

bootstrap 5 Navbar not working

<!-- You have to change the data-toggle to data-bs-toggle and use data-bs-target attribute.
Add the ID in the collapse div.
That's all..
Believe me, it works-->

<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#collapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="collapse">
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bootstrap #Navbar #working
ADD COMMENT
Topic
Name
2+6 =