[Solved] Bootstrap dropdown menu links not clickable


You have errors in your code:

enter image description here

Uncaught TypeError: Cannot read property 'top' of undefined

$(".links a, .nav a").click(function (event) {
    event.preventDefault();
    var dest = 0;

    //                Error here 
    //                       vvvv
    if ($(this.hash).offset().top > $(document).height() - $(window).height()) {
        dest = $(document).height() - $(window).height();
    } else {
        dest = $(this.hash).offset().top;
    }
    $('html,body').animate({scrollTop: dest}, 800, 'swing');
});

1

solved Bootstrap dropdown menu links not clickable