I have a number in a span tag. I need to get the value of the number in the span and then increment it inside jQuery. I know how to do this for a text input - can this be
This is the most complete answer.
var $number = $('.changeNumber'); $number.html((parseInt($number.html(),10) || 0) + 1);