I have a navigation bar and carousel within the same section. I want to change the background color of both the navigation bar and carousel item when the carousel indicator becomes active. Any suggestions on how to achieve this using a jQuery function? Here is the jQuery code I currently have for the indicators:
$(document).ready(function(ev){
$('#carousel-example-generic').on('slide.bs.carousel', function (evt) {
$('#carousel-example-generic .controls li.active').removeClass('active');
$('#carousel-example-generic .controls li:eq('+$(evt.relatedTarget).index()+')').addClass('active');
});