how to get the event object for onClick()
<p>I have a loop which generates lot of input text fields with jquery. Now i want to fire stopPropagation method when someone clicks on those input tags. I am in a notion that this method works like this:</p>

<pre><code>event.stopPropagation()
</code></pre>

<p>But problem is that i want to fire this method on onClick attribute of the input tag. Like this:</p>

<pre><code>$(handler).html('&lt;input type="text" value="'+text+'" style="width:280px;" onClick=stopPropagation(); /&gt;');
</code></pre>

<p>And this won't work for obvious reasons. I need to get the event object for this click. Whats the smarter way?</p>
