I’ve got that html
<table>
<tbody>
<tr>
<td>
<input name="price" class="chrome-input" />
</td>
<td>
<button name="sellButton" class="chrome-button">
</button>
<button name="priceButton" class="chrome-button">
</button>
</td>
</tr>
</tbody>
</table>
How can I get tr that contains control with class chrome-button inside.
Something like this
alert($("tr+.chrome-button").html());
1 Answer