我有一个HTMLjQuery。获取标记+类名
<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>
我怎样才能tr
包含与chrome-button
类内部控制。 像这样
alert($("tr+.chrome-button").html());
这应该是最快的,因为伪选择器是通常要慢得多。 – Ben 2011-04-06 19:47:41