Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

JS Events, JS classList, CSS Flexbox, CSS Media Queries

@hammichalkovic

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


It's my first JS solution!

Do you know why when clicking on titles/buttons in my accordion (from top to bottom) it closes all the details (description paragraphs) on first click (not only the last opened) , and only after second click opens the new title/button? And by surprise everything works well while clicking from bottom to top.

I'll be very glad to see your pieces of advice!

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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