Sometimes, we want to close Bootstrap dropdown after link click with HTML.
In this article, we’ll look at how to close Bootstrap dropdown after link click with HTML.
How to close Bootstrap dropdown after link click with HTML?
To close Bootstrap dropdown after link click with HTML, we add the dropdown-toggle
class.
For instance, we write
<a class="dropdown-toggle"></a>
to add the dropdown-toggle
class to the link to close Bootstrap dropdown after link click with HTML.
Conclusion
To close Bootstrap dropdown after link click with HTML, we add the dropdown-toggle
class.