I'm attempting to have my code collapse when the links are clicked, but I'm running into some issues.
I attempted adding data-toggle to the link, however in doing so, the links stopped functioning.
<HTML>
<nav class="navbar navbar-expand-lg fixed-top activate-menu navbar-light bg-light">
<a class="navbar-brand" href="#showcase">MyWebsite</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li>
<a class="nav-link" href="#showcase">Home</a>
</li>
<li>
<a class="nav-link" href="#features">Feature</a>
</li>
<li>
<a class="nav-link" href="#teams">Team</a>
</li>
<li>
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
</div>
</nav>
</HTML>
The desired result is for the links in the nav to function properly and for the menu to close once a link is clicked.
Currently, the links are working but the menu does not collapse as intended.