I have implemented two Bootstrap 3 navigation menus on a single page. One menu works fine when the toggle button is activated for responsiveness, but the other one doesn't work as expected. How can I resolve this issue?
Below are the code snippets for both menus:
Menu-1:
<nav class="navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<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" id="slideTrigger" href="#"><i class="glyphicon glyphicon-chevron-down"></i> <span>More From Intuit</span></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
<i class="glyphicon glyphicon-search"></i>
</div>
</form>
<ul class="nav navbar-nav">
<li><a href="#">Security</a></li>
<li><a href="#">Cart</a></li>
<li><a href="#"><i class="glyphicon glyphicon-earphone"></i> +00 000 000 <i class=" glyphicon glyphicon-info-sign"></i></a></li>
</ul>
</div>
</nav>
Menu-2:
<div class="navbar" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse2">
<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="#"><img src="img/logo.png" alt="" ></a>
</div>
<div class="navbar-collapse collapse navbar-collapse2 collapse2">
<ul class="nav navbar-nav left_buttons">
<li class="active"><a href="#">Products</a>
<ul>
<li><a href="">DropDown</a></li>
<li><a href="">DropDown</a></li>
<li><a href="">DropDown</a></li>
<li><a href="">DropDown</a></li>
<li><a href="">DropDown</a></li>
</ul>
</li>
<li><a href="#">Addons</a></li>
<li><a href="#">Checks</a></li>
<li><a href="#">Support</a></li>
</ul>
<ul class="nav navbar-nav navbar-right right_buttons">
<li><a href="#" class="btn btn-default trial_button">Free Trial</a></li>
<li><a href="#" class="btn btn-primary signin_button">Sign In</a></li>
</ul>
</div>
</div>
</div>