accessing the next tr from an input in the row above using jquery
Posted
by Jan Hoefnagels
on Stack Overflow
See other posts from Stack Overflow
or by Jan Hoefnagels
Published on 2010-03-25T08:56:55Z
Indexed on
2010/03/25
9:03 UTC
Read the original article
Hit count: 400
Dear jquery experts,
Is there any way to access a tr from an input of a tr above without adding row specific id's or classes?
<table>
<tr><td>just another row</td>
<tr><td><input name="inputToSerachFrom" type="text" /></td><tr>
<tr><td>I want to acces this row without adding id's or classes</td><tr>
<tr><td>just another row</td>
</table>
var rowINeed = $("input[name=inputToSerachFrom]").closest("tr").parent().noIdea();
Jan
© Stack Overflow or respective owner