如果我有下表
<table>
<tr>
<td>Name</td>
<td>Age</td>
<td class='remove'>Age <input type=checkbox title='Select All' /> </td>
</tr>
<tr>
<td>Na11</td>
<td>11</td>
<td class='remove'><input type=checkbox /></td>
</tr>
<tr>
<td>Name</td>
<td>Age</td>
<td class='remove'>Age <input type=checkbox /></td>
</tr>
</table>
除了具有“删除”类的 TD 之外,我如何获取该表的 html。我不想使用
.remove()
因为我不需要更改浏览器上的显示。我只需要 HTML。
低于正确
$('table :not(.remove)').html();
但这并没有给我表格的 html。