Submitted almost 3 years agoA solution to the FAQ accordion card challenge
FAQ accordion card
@approved4me

Solution retrospective
I am still struggling with the JavaScript for the accordion. I have managed to close other items, when another accordion item is opened, but I haven't found out how to close the current accordion item, when clicking it directly.
If anyone knows how to close the active menu when clicking on it, please let me know.
Thanks for viewing.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Blerim's solution.
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