Skip to content
Submitted 20 days ago

FAQ Accordion

jquery
Gillan60
@gillanfrances
A solution to the FAQ accordion challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

As a JS beginner, I'm most proud of displaying only one question at a time using jQuery.

What challenges did you encounter, and how did you overcome them?

It was a rookie mistake, but I was confused at first why the background color suddenly didn't show up when I put the background image--it was because I didn't put the proper formatting. I also overlooked initially that the question text has a different color when hovered. As for JS, I wanted to display only one question at a time and for the answer to be closed when clicked outside it but it becomes hidden immediately--fixed with (e.stopPropagation();

What specific areas of your project would you like help with?

I would appreciate any JS help!

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Gillan’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