I've searched through various resources, but I'm still struggling to resolve the dropdown menu issue in my navbar.
My goal is to create a dropdown menu similar to the one found here, positioned in the top right corner of the page.
This is the code I currently have:
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Loveland Tigers</a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">About</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Teams<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="freshman.html">Freshman</a></li>
<li><a href="junior_varsity.html">Junior Varsity</a></li>
<li><a href="varsity.html">Varsity</a></li>
</ul>
</li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
</nav>
Despite following this setup, the dropdown menu fails to display when clicking on the arrow icon.