Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Tip Calculator using JavaScript Classes, CSS Flexbox and Semantic HTML

@KaustubhMaladkar

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

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 GitHub
Discord logo

Join 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