Intro-Section with Dropdown Navigation

Solution retrospective
how do I make the dropdown close again on click. I tried toggle('hidden') but it didn't work any suggestion will be much appreciated. Thank you
Please log in to post a comment
Log in with GitHubCommunity feedback
- @SOULBRODA023
you can as well create a class in CSS and then tell javascript that when onclick, it should add the classlist hide to the dropdown let's take for instance; After you have created the class, let's say class of "hide"... then you do a dropdown.classList.add("hide").I think that should do the Job. Nice work by the way
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord