Skip to content
Advertisement

how to close the menu when clicking on a link?

I have a code, but I need help please, how can I close the menu when clicking on a link item. that’s what I’m stuck on

JavaScript

Advertisement

Answer

Just add .slideToggle() to the click listener:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement