Design comparison
Solution retrospective
This one was really fun to do, I had some problems with the form, first I didn't know how to get the data in the inputs, then I used an object to get the data. Next I tried to use querySelectorAll() to select all the elements on the class, but I didn't know how to iterate between all, so I only did the effect on event when people click on it.
Any advice is welcome.
Community feedback
- @Kl3vaPosted over 2 years ago
Use the forEach () method to iterate over all of the elements and do what you want to do. You can do a research on Array methods. forEach comes in handy when working with DOM elements
Marked as helpful1@RebeittePosted over 2 years ago@Kl3va Thank you so much! I will use it in my next project
1
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