For code, please see my fiddle here: http://jsfiddle.net/6fwbS/5/
I can not get the global variables a, b, or c to change when you click on the increase button. Even though I have declared them outside any functions, the functions just don’t seem to know the values of these variables. I’ve had a similar problem before with accessing global variables to be used in a function. Can someone tell me what I’m doing wrong here?
I’m not sure how it’s supposed to work but I’d guess you are forgetting to increment a. Maybe you need this: