P. Jongejan Posted January 17, 2019 Share Posted January 17, 2019 I want to change the menu on https://www.w3schools.com/howto/howto_js_topnav_responsive.asp. It displays an icon on the righthandside which opens the formerly hidden menuitems underneath each other. They can be hidden again by clicking this icon again, it's a toggle-function. I like to have it collapsed automatically after a menuitem is chosen. How can this be done? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 17, 2019 Share Posted January 17, 2019 Run the toggle function when any of the links are clicked. Link to comment Share on other sites More sharing options...
P. Jongejan Posted January 18, 2019 Author Share Posted January 18, 2019 (edited) No toggle function necessary, I just did put the responsive-functioncall at the end of the linkfunction and it works. But thanks anyway, your suggestion did put me on the right track. Edited January 18, 2019 by P. Jongejan my English Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now