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