I've tried searching for this but keep getting results on append(), etc.

I'm building a cart that adds items via jQuery. Basically you select the product and click the 'add to cart' button and then it gets added to the page via append. Very simple.

What I'm trying to do is total up the dollar amounts of each item added to the cart, but I can't figure out how to do that. How do I keep a running tally of prices throughout my different functions?