I am trying to set a nav bar item active when selected through this scrpt
<script>
$(document).ready(function() {
$('.nav li a').on('click', function() {
$(this).parent().parent().find('.active').removeClass('active');
$(this).parent().addClass('active').css('font-weight', 'bold');
});
});
</script>
But it does not work
see this