jquery onclick run
<p>I need to run all onclick events on page load.
how can I do something like this:</p>

<pre><code>$('.upload').foreach(function(){
 //execute onclick for found element (ex: test(this, 'var') )
});

&lt;div class="upload" onclick="test(this, 'var')"&gt;text&lt;/div&gt;
</code></pre>
