<table id="personal" border="1">
<tr>
<td>Name</td>
<td>Address</td>
<td rowspan="2" class="remove">Remove</td>
</tr>
<tr>
<td>Name</td>
<td>Address</td>
</tr>
<tr>
<td>Name</td>
<td>Address</td>
<td rowspan="2" class="remove">Remove</td>
</tr>
<tr>
<td>Name</td>
<td>Address</td>
</tr>
<tr>
<td>Name</td>
<td>Address</td>
<td rowspan="2" class="remove">Remove</td>
</tr>
<tr>
<td>Name</td>
<td>Address</td>
</tr>
</table>
$('#personal tr .remove').click(function(){
$(this).parent().remove();
})
我想删除受行跨度影响的 2 行。有可能的?如果是怎么办?现在它只删除一行。
小提琴:http : //jsfiddle.net/awanan/j3fNK/