HTML is
<tr>
<td><input /></td>
<td><a>ref</a></td>
</tr>
I got
$('a')
What is the most optimal way to get <input /> from this ?
If they are together <input /><a></a>, i can use $('a').sibling('input'), but they are in different td’s
You can do this:
This goes up to the
<td>, and searches siblings for<input>elements.