Tip calculator --jquery CSS HTML

Solution retrospective
I couldn't understand the task properly. anyhow tried my best to accomplish the tasks. kindly reviews it and give your valuable suggestions.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @yacineKahlerras
Hey @abymani good job on the design i just have a few suggestions that might might be helpful
- you can set the type of the input to number so it accepts numbers only without using any javascript code
- i couldn't enter numbers using my numbers pad that's because in your form validation function you didn't include the numbers pad keycodes in the conditions
- the math of the tip and the total amount should be divided by the numbers of people there
let tipAmount = ( bil * tip /100 ) / persons; let total = ( bil / persons ) + tipAmount;
other than that good job on the challenge and happy coding !
Marked as helpful
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