79348375

Date: 2025-01-11 15:28:31
Score: 1.5
Natty:
Report link

First of all nice code and loved the idea.
Here are the possible corrections and improvements I would suggest you try 1.> You are using a common ID in the paragraph tag which violated the unique id rule. Either change it to a class or use a unique on for each element like name-${id}. 2.> I assume you have defined the onchange(), price_calc() and removeitem() method elsewhare in your program. Otherwise please do so. 3.> Make sure that your HTML has an element with the ID cart and a child ul to hold the cart items. Additionally, ensure there is a #totalPrice element to display the total price. This should make your project work fine. As always, Happy Coding. P.S: Please upvote my answer if it woks ヾ(≧▽≦*)o

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kailash H