I'd like to know how to keep adding number to a varible. For instance the number starts at 0 then every time you click the button it adds 20. So the first click would change the variable to 20 then the next click 40. This is as far as I can get..
var n = 0;
$('#button).live('click', function() {
newval = n+20;
$('.number').append($('<p/>', {text: newval}));
});