【发布时间】:2014-10-24 20:12:39
【问题描述】:
我正在为页面制作用户脚本。该页面是老式的桌子 - 无处不在的设计。我正在尝试访问长字段表,以便它们可以被脚本填充。
结构可以简化成这样:
<form>
<blockquote>
<table>
<tr>
<td>
<table>
<!-- THE DESIRED <input> FIELDS ARE HERE!! -->
</table>
</td>
<td>
<table>
<!-- Contains <select> <input> -->
</table>
</td>
</tr>
</table>
<!-- the table repeats and I need all inner tables -->
</blockquote>
</form>
所以我想我可以获得form table 中的所有表,但不包含 <select>。
我认为parents selector in jQuery 的对面是理想的。有这样的东西吗?
【问题讨论】:
标签: javascript jquery