Submitted over 2 years ago
Tip Calculator using JavaScript Classes, CSS Flexbox and Semantic HTML
@KaustubhMaladkar
Design comparison
SolutionDesign
Solution retrospective
To toggle between reset and submit buttons, I tried to use the "type" attribute. Like when the type is "submit" change to "reset", but that did not work out. Therefore, I added another hidden reset button in my HTML which I show or hide using JavaScript. Is this the best practice?
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