JQuery getting the tr after clicking its content <a>

Posted by fishiefishie on Stack Overflow See other posts from Stack Overflow or by fishiefishie
Published on 2010-03-25T19:23:21Z Indexed on 2010/03/25 19:33 UTC
Read the original article Hit count: 138

Filed under:

Suppose I have

<table>
  <tr>
    <td><a class='ilink'> link text </a></td>
    <td></td>
    <td></td>
  <tr>
  <tr>
    <td><a class='ilink'> link text </a></td>
    <td></td>
    <td></td>
  </tr>
</table>

in the jquery code, after clicking the link, I want to highlight the entire table row that the link is in. But how can I find it?

© Stack Overflow or respective owner

Related posts about jQuery