Design comparison
SolutionDesign
Solution retrospective
First Intermediate Project! 🫠
Community feedback
- @jcboteroPosted over 1 year ago
Hello Sang. Nice code. The only thing I would add is that perhaps you forgot to connect the "add to cart" button with the shopping cart.
However, you can do this by using an eventlistener that fires when you click the button. something like that in your js file:
document.getElementById("addcart").addEventListener("click", function() {
your code
}
If you think this helped you, please mark it as helpful. Thank you!
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