Hi, I'm trying to make a shopping basket on a web page.
So far I've got a HTML page with the items, a quantity drop down menu (0-9), a 'Add to Basket' button next to each item and a 'View Shopping Basket' button at the bottom of the page.
What I need help with is the next part, I need to make a javascript function that generates a table. Which displays the items in the basket, the name of the item, quantity the price and the sum (quantity*price) And then a total price of all the items.
Also the Add to Basket button, and how to store the data about the basket (ie how many of each item are in the basket) I don't know what to do about that.
Any help appriciated
So far I've got a HTML page with the items, a quantity drop down menu (0-9), a 'Add to Basket' button next to each item and a 'View Shopping Basket' button at the bottom of the page.
What I need help with is the next part, I need to make a javascript function that generates a table. Which displays the items in the basket, the name of the item, quantity the price and the sum (quantity*price) And then a total price of all the items.
Also the Add to Basket button, and how to store the data about the basket (ie how many of each item are in the basket) I don't know what to do about that.
Any help appriciated
