jQuery – Increase the value of a counter when a button is clicked
You cannot use ++ on something which is not a variable, this would be the closest you can get: jQuery’s html() method can get and set the HTML value of an element. If passed a function it can update the HTML based upon the existing value. So in the context of your code: DEMO: http://jsfiddle.net/marcuswhybrow/zRX2D/2/ … Read more