View Single Post
Old 04-11-2007, 09:41 PM   PM User | #3
chadconger
New Coder

 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
chadconger is an unknown quantity at this point
I think I figured it out. It works now!!

I didn't put var in front of my variables.

I changed

Code:
price = document.getElementById("price").innerHTML;
to

Code:
var price = document.getElementById("price").innerHTML;
and did the same for the other variable and it works without errors.

Any comments on how I can make it better would be great though.
chadconger is offline   Reply With Quote