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

HTML, CSS radio buttons, JavaScript 'input' change event

BadT 230

@saodinh

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

@whoiskekeanyway

Posted

Why did you preselect 15% and choose 1 for the number of people? when the user enters 0, the app should say, "Can't be Zero

0

BadT 230

@saodinh

Posted

Well, that is just my own idea, I thought to myself "What if the users input something insensible like negative numbers on the bill field, the custom field and the number of people field?". So i add error states to all 3 fields with a red border. I agreed that I didn't follow the design strictly but that can easily be fixed. I just like my way better.

0

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