Tip calculator using HTML, CSS and Javascript

Solution retrospective
I found the input event for the custom input element very challenging to maneuver. Any advice on best practices will be appreciated.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @elisa-charrier
Hi! I did this challenge too.
Here's how I handled custom button:
- in html set an <input type="button" value="Custom" ...>
- on user's click, changed the type to number and emptied the value.
Go check out my solution if you like to.
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