How to collapse Bootstrap 4 mobile menu after clicking.

Home Forums Web Design How to collapse Bootstrap 4 mobile menu after clicking.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1454
    Mofizul
    Keymaster

    Just need to add the line.

    $(".navbar-nav li a:not('.dropdown-toggle')").on("click", function () {
        $(".navbar-collapse").collapse("hide");
      });
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.