How to find out which table row was clicked using jQuery?
<p>I am using 'live' function to do some on-click stuff on table rows, i.e. </p>

<pre><code>$("tr").live('click',function() {
      alert('Some table row is clicked');
});
</code></pre>

<p>I want to find out which row is clicked and using <code>if-else</code>, give some custom alert based upon that. Can anyone tell me how to do it?</p>

<p>Thanks a lot.</p>

<p><strong>EDIT 1:</strong></p>

<p>Is there a way by which I can refer to the elements of the clicked row inside the function?</p>
