Add a class “active” to menu item when clicked.

$(function(){
    $('#nav li').on('click', function(){
    //$(this).addClass('active').removeClass('off').siblings().addClass('off').removeClass('active'); // no need to add .off
        $(this).addClass('active').siblings().removeClass('active');
    });
});

Leave a Reply

Your email address will not be published. Required fields are marked *