Design comparison
Solution retrospective
Please, any feedback would be greatly appreciated. I would also like to know if there's no way I can validate radio inputs when the use submits the form
Community feedback
- @iagohenrique2009Posted over 2 years ago
Hi friend!
There yes another way of doing the inputs using a loop to add an event listener to each button instead of hard coding each one. If you not sure exactly how to do this you could look at my solution (https://github.com/iagohenrique2009/FrontendMentorChallenges/tree/main/Interactive-rating-main)
or if you whant a deep read:https://softauthor.com/javascript-for-loop-click-event-issues-solutions/
Marked as helpful0@Sayfo1809Posted over 2 years ago@iagohenrique2009 Thank you so much, I just went through your solution. I will try it out. Thanks
0
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