I have a well-functioning carousel that slides perfectly between each image, but I am looking to highlight the active item when sliding and clicking on the navbar menu links. Can anyone point me in the right direction with this?
HTML CODE:
<nav class="navbar navbar-default" role="navigation">
<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>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li data-target="#myCarousel" data-slide-to="0" class="active"><a href="#">slide 1</a></li>
<li data-target="#myCarousel" data-slide-to="1"><a href="#">slide 2</a></li>
<li data-target="#myCarousel" data-slide-to="2"><a href="#">slide 3</a></li>
</ul>
</div>
</nav>
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div class="wrapper">
<%-- Slide 1 --%>
</div>
</div>
<div class="item">
<div class="wrapper">
<%-- Slide 2 --%>
</div>
</div>
div class="item">
<div class="wrapper">
<%-- Slide 3 --%>
</div>
</div>
</div>
<a class="carousel-control left" href="#myCarousel" data-slide="prev">
<span class="icon-prev"></span>
</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">
<span class="icon-next"></span>
</a>
</div>