Use jquery to keep adding numbers to a variable on click
<p>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..</p>

<pre><code>var n = 0;
$('#button).live('click', function() {
    newval = n+20;
    $('.number').append($('&lt;p/&gt;', {text: newval}));     
});
</code></pre>
