Responsive Tip Calculator | HTML, CSS, JavaScript

Solution retrospective
- 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
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Tarun-G-V-N
Looks Great!!
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