Jquery change variable value onclick
<p>I am declaring a variable like this:</p>

<pre><code>var list = 0; 
</code></pre>

<p>I then want to change the variable value through a click event.</p>

<pre><code>$('div#showList').click(function() { list = 1; });
</code></pre>

<p>Any help on how to do this?</p>
