Anchor link with js and bootstrap, how to close the menu after clicking?

1

I'm making a website using boostrap, it's a unique page. When I access the cell and click on some link in the menu of the page it does the scrolling effect to where the anchor is, but the menu remains open, how can I do to when clicking on the menu link, the menu itself close?

    
asked by anonymous 11.07.2016 / 04:20

1 answer

1

If you are using jquery, create a function that, when clicking, turns the menu into display: none. $("#itemmenu").click(function (){ $("#iddomenuquevcquerquedesapareca").css ("display","none"); });

    
11.07.2016 / 05:29