
Design comparison
Solution retrospective
I'm proud of the progress I've made
What challenges did you encounter, and how did you overcome them?I wanted to create a small timer that would display error messages each time one of the inputs was registered. After realizing I couldn't do it, I just deleted it
What specific areas of your project would you like help with?no
Community feedback
- @JimztechPosted 4 months ago
great work Casper. but the reset button only clears the input values and not the output value. to clear all values, you'd have something like this in your js for ur reset btn.
// Reset outputs resetButton.addEventListener("click", () => { amountOutput.textContent = "$0.00"; totalOutput.textContent = "$0.00"; });
This being collected as a dom value. you can check my js code in my own project. But all still great work.
My bro just checked your code now, please use a form element, in your html, whenever you are dealing with
<input type="text">
Thanks for reading.
Marked as helpful1@erntTt94Posted 4 months ago@Jimztech What is the point of using form without a submit button? He is not going to send the date anyways.. i don't think its a must to use a form element when there is input element...
You need to validate your code... there is really too much bugs: --for example: i choose bill: 20, people 2, 15% and nothing happens.. i need to click once more on the %.. than when i delete bill and give it 2 it stays 0, but if i delete it than it shows $2.10.. or if i change people to 2 and bill to 1 it shows infinity.. i really dont know what is going on..
Marked as helpful1
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