看板 [ Ajax ]
討論串[問題] JQuery合併td
共 10 篇文章

推噓3(3推 0噓 2→)留言5則,0人參與, 最新作者No (you stay there)時間14年前 (2011/09/22 22:26), 編輯資訊
0
0
1
內容預覽:
提供另一種解法. http://jsbin.com/oveger/edit#source. // 從第一個row逆向走訪每一個cell. $($('tr:first td').get().reverse()).each(function(index){. // $start為比對目標,指向每一組的首
(還有511個字)

推噓0(0推 0噓 8→)留言8則,0人參與, 最新作者fr730149時間14年前 (2011/09/22 14:29), 編輯資訊
0
0
1
內容預覽:
在下以小貓大的教學為基底. http://www.dotblogs.com.tw/topcat/archive/2009/11/24/12139.aspx. 以迴圈將同一個Column下的td設成相同的dt值(不同Column下td的dt值皆不同). 然後在呼叫小貓大寫的rowspan(). $('
(還有294個字)

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者fr730149時間14年前 (2011/09/22 14:18), 編輯資訊
0
0
0
內容預覽:
以上寫法似乎有問題…. 假設:我把Table改成. <table>. <tr>. <td>Column_A</td><td>Column_B</td><td>Column_C</td><td>Column_D</td>. </tr>. <tr>. <td>X11</td><td>X21</td><t
(還有153個字)

推噓4(4推 0噓 4→)留言8則,0人參與, 最新作者mesak (阿米)時間14年前 (2011/09/21 17:05), 編輯資訊
0
0
0
內容預覽:
有點麻煩= =. $('tr').each(function(){. var $td = $(this).children();. var $tr_next = $(this).next().children();. if( $tr_next.length > 0 ){. if( $td.eq(0)
(還有49個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者fr730149時間14年前 (2011/09/21 14:19), 編輯資訊
0
0
0
內容預覽:
請問以下案例要如何寫:. 我想把多個欄位,底下相同的值做合併(rwospan). 如:. 將下表. ------------------------------------. Column_A Column_B Column_C Column_D. X1 X11 X12 X13. X1 X21 X2
(還有168個字)