DEV Community

loading...

Discussion on: Bootstrap Collapsing Menus without jQuery

Collapse
feldev profile image
Félix Paradis

Thanks!
Your solution was not complete enough for me (no transition) but you got me on the right track.

By the way, your function could be reduced to:

function displayMenu(event) {
    document.getElementById("navbar-list").classList.toggle("show");
}
Enter fullscreen mode Exit fullscreen mode