
Submitted 12 days ago
Responsive Tip Calculator | HTML, CSS, JavaScript
P
@okayishmael
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
- Growth in working with plain CSS for responsive web.
- I am also gaining more confidence in JavaScript.
My code wasn't populating the calculated results. I used dev tool debug but I wasn't getting any error message. So I used AI to tell me why my code wasn't working.
What specific areas of your project would you like help with?When there is an error, people input should be highlighted red. It is not doing so
<input type="number" id="people" class="icon-person" placeholder="0" />
const numberOfPeople = document.getElementById("people");
numberOfPeople.classList.remove("error"); // Remove highlight
errorMessage.style.display = "none"; // Hide error message
Community feedback
- @Tarun-G-V-NPosted 12 days ago
Looks Great!!
0
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