Targeting an element by only knowing the ID/Class of an element 2 levels down
Im trying to fire off an event of an element, but I need to target the element by only knowing the ID or class of an element thats 2 levels down.
Example: If the DOM src is:
- <table>
- <tr /* Target THIS */>
- <td>
- <span id="test">Click me</span>
- </td>
- </tr>
- </table>
Then I would want to target the
<tr> element by only knowing the
span#test element..
Any help would be appreciated! Thanks