
Design comparison
Solution retrospective
I really proud of how i wrote the javascript code and i hope to make it shorter next time.
What challenges did you encounter, and how did you overcome them?I couldnt change the color of the input and also couldnt change the background color of the fieldset when the input[type:"radio"] was clicked. eventually, i researched and kept on checking till i finally did it by myself.
What specific areas of your project would you like help with?I need help most especially with a better javascript code.
Community feedback
- @erntTt94Posted 2 months ago
Hello, very good job! I checked your JS code and there is too much repetation... Instead of doing it every single time just select all of the inputs without the radio and if there is an error you can do it with nextElementSibling to show it and if there is no error just hide it... It will shorten your code.. Keep going :]
Marked as helpful0
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