Bootstrap 3 collapsed menu doesn’t close on click
Just to share this from solutions on GitHub, this was the popular answer: https://github.com/twbs/bootstrap/issues/9013#issuecomment-39698247 $(document).on(‘click’,’.navbar-collapse.in’,function(e) { if( $(e.target).is(‘a’) ) { $(this).collapse(‘hide’); } }); This is wired to the document, so you don’t have to do it on ready() (you can dynamically append links to your menu and it will still work), and it only gets … Read more