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

Asked

Viewed 487 times

1

I’m making a site using boostrap, it’s a single page. When I access by cell phone and click on some link from the menu of the page it makes the scrolling effect to where the anchor is, but the menu remains open, as I can do to when clicking on the menu link, the menu itself close?

1 answer

1


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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.