<table border="1">
<tr><td>111</td><td>22</td><td rowspan="3">ads</td></tr>
<tr><td>111</td><td class="remove">22</td></tr>
<tr><td>111</td><td class="remove">22</td></tr>
<tr><td>111</td><td>22</td><td rowspan="3">ads</td></tr>
<tr><td>111</td><td class="remove">22</td></tr>
<tr><td>111</td><td class="remove">22</td></tr>
<tr><td>111</td><td>22</td><td rowspan="3">ads</td></tr>
<tr><td>111</td><td class="remove">22</td></tr>
<tr><td>111</td><td class="remove">22</td></tr>
</table>
$('.remove').click(function(){
$(this).parent().remove();
})
FIDDLE:http://jsfiddle.net/r5BDW/1/如何用jQuery修改ROWSPAN屬性?
如果我刪除TR則表是休息,因爲ROWSPAN太大。是否可以修改ROWSPAN?如果是,如何?
難道只是我,還是你之前和之後,例如具有完全相同的元素呢? :) – MadSkunk 2015-09-07 10:23:19