I am building a menu page for a relative and using this as a good opportunity to learn jQuery but have got myself a bit stuck!!
I would like to have two columns, the left column showing all available items with an add button. The right column showing all of the added items, and then adding these together to provide an order total, but with the ability for users to add to the quantity or remove from their order.
I have the add item to order bit working on, and the sub-total is working.
I started to try to add on add/remove buttons to the right #your-order column but am getting stuck.
Every time a user adds another item to their order, more buttons are added, and I can't get the "remove item" button working.
Totally stuck, would anybody be able to point out where I am going wrong?
The first thing you should try and fix is the multiple buttons getting added to each item. I've pointed out the code that's causing it and reason it's doing is that is because it's being called on every click for all items under the #right column.
Leave a comment on kerry.kim.russo's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic