Passing two parameters to a function
<p>I try to send a javascript function 2 parameters like this:</p>

<pre><code>var par1;
var par2;

$('#somediv').append('&lt;div onclick="somefunction('+par1+','+par2+');"&gt;&lt;/div&gt;');
</code></pre>

<p>i'm creating a lot of divs like this one and all dynamicaly, i just need to find the correct way to pass the par1 and par2 to the operate them later.</p>

<p>right now only par1 is ok, par2 is undefined (they both has string value).</p>

<p>Any suggestions?</p>
