Design comparison
SolutionDesign
Solution retrospective
I'm not sure about best practices as far as JS goes. So please give me feedback on that. I did see in my research that adding a "hidden" class to the elements that I would be switching between will make JS functions much simpler.
But I was wondering if there's a better way to reset forms other than reloading the entire page. Each time I tried to add the .reset() to my input element in one of my functions, it never would complete the rest of the actions.
Community feedback
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