0

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

http://www.bootply.com/eKZjSelT8s

lowcoupling
  • 2,151
  • 6
  • 35
  • 53

0 Answers0