Extracting value from onclick function call
<p>In jQuery, how do I extract the number 4 from the doThisThing() function call from an onclick event:</p>

<pre><code>&lt;div id="div1" onclick="doThisThing(4)"&gt;&lt;/div&gt;
</code></pre>

<p>and how do I set it?</p>

<p>Thanks.</p>
