Submitted over 1 year ago
Intro-Section with Dropdown Navigation
@Adebukol
Design comparison
SolutionDesign
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
Community feedback
- @SOULBRODA023Posted over 1 year ago
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 helpful1
Please log in to post a comment
Log in with GitHubJoin 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