2016-04-19 31 views

回答

0

確定的工作了

,而不是通過循環正常,我看着向後和它的工作:)

+0

顯示更新的代碼。這個解釋很簡單,幾乎沒用。 – Barmar

0

您可以通過在「tr」級循環數據並消除重複條目來實現該目的,添加「rowspan」。

以下代碼段將您有所幫助,

$('#tblNewAttendees tr').each(function() { 
//initate the rowcount here 
    $.each(this.cells, function(){ 
     //use after function to append the cell 
      $(this).find('td').eq(0).after('<td rowspan=rowcount class="table-rowspan">==>fooo <== </td>');//instead of eq(0) use the number position you want to append 
    }); 

}); 
相關問題