title: JQuery - How to find the id or the row that triggered the action click event?
body: <p>I have HTML table and certain rows belong to a class and each of those rows have an id. I have attached an onclick handler to the class using jquery. When the any of the rows in that class is clicked, the click event is triggered. But the source of the event propagates to  the  element in the clicked row. How to get the id of the row that contains the td(event source) ?</p>
  
  <p>HTML :</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr class="onegroup" id="parent_1"&gt;
          &lt;td&gt; Item 1 &lt;/td&gt;
          &lt;td&gt; Item 2 &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Jquery:</p>
  
  <pre><code>        $(".onegroup").click(function (event) {
            alert(event.target.id); // currently displays undefined as neither of the &lt;td&gt; have an id.
            //Want to display the id of the row ('parent_1')
           });
  </code></pre>