javascript - Making links active dynamically upon click -


i'm using bootstrap's default navbar. want active page represented dark gray block dynamically upon clicking link. can't seem work. here's code have far. it's similar question except i'm trying integrate bootstrap.

codeply went down? new demo edits here.

i think want

$(".navbar-nav a").click(function() {     $(".navbar-nav > .active").removeclass("active");     $(this).parent().addclass("active");     return false; }); 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -