2
我想只选择表格中第一层'td'元素而不是任何嵌套表格的单元格。 如:如何选择表格单元而不选择jQuery中的嵌套表格单元格
<table id="Outer">
<tr>
<td> --this one
</td>
<td> --this one
<table>
<tr>
<td></td> -- but not this one or any deeper nested cells
</tr>
</table>
</td>
</tr>
</table>
(是在督促代码,我可能包括TBODY,THEAD ...)
似乎并不适合我 – rizzle 2009-04-21 21:58:30
TD不是TABLE的直接子元素。 – tvanfosson 2009-04-21 22:04:59