I have some problem splitting a table with jQuery.
This is the table:
3条回答 春和景丽 (楼主) 2021-01-14 18:59 This code solve the problem of yours. $(document).ready(function(){ $("table tr td:nth-child(5n)").addClass('break'); var boundary = $("td.break"); $("").insertAfter(boundary.parent()).append(boundary.nextAll().andSelf()); }); DEMO 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
This code solve the problem of yours.
$(document).ready(function(){ $("table tr td:nth-child(5n)").addClass('break'); var boundary = $("td.break"); $("").insertAfter(boundary.parent()).append(boundary.nextAll().andSelf()); }); DEMO 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
DEMO