I'm trying to add all of the calorie contents in my javascript like this: total = parseFloat(myInt1 + myInt2 + myInt3); $('#response').append(total); Instead of adding the variables they get concatenated. I've tried using parseInt, parseFloat, and Number but I still just get concatenation and not addition. Please look at the view source at http://maureenmoore.com/momp_112412/121912_800.html
Thanks I added your code to maureenmoore.com/momp_112412/121912_800.html but it didn't improve the situation.
The problem was solved by axrwkr at stackoverflow: stackoverflow.com/questions/13953939/how-to-force-addition-instead-of-concatenation-in-javascript