passing parameter on jquery onclick function from html onclick event
<p>I want to pass parameters to onclick jquery function from html onclick event.</p>

<p><strong>html statement rendering in PHP</strong></p>

<pre><code>$name = "abcd";
for ($i=0;$&lt;10;$i++){
$text .= '&lt;tr&gt;
             &lt;td&gt;'.$i.'&lt;/td&gt;
             &lt;td&gt;&lt;div id="name"&gt;'.$name.'/div&gt;
                 &lt;a class="href" onclick="callJSFunc($i,\''.$name.'\')" &gt;&lt;/a&gt;
             &lt;/td&gt;
          &lt;/tr&gt;';
}
</code></pre>

<p><strong>javascript..</strong></p>

<pre><code>function callJSFunc(i , name){
alert(i+"  "+name);
}
</code></pre>

<p><strong>I want to convert it into someting...</strong></p>

<pre><code>$(".href").click(function(i,name,event){
alert(i+"  "+name);
});
</code></pre>
