I have a div structure like this
5条回答 自闭症患者 (楼主) 2020-12-11 09:36 You can do it like this $('.itemRow:first') // select first itemRow .append($('.item')) // append all .item to first itemRow .nextAll('.itemRow') // get all the next .itemRow .remove(); // remove the them FIDDLE 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You can do it like this
$('.itemRow:first') // select first itemRow .append($('.item')) // append all .item to first itemRow .nextAll('.itemRow') // get all the next .itemRow .remove(); // remove the them
FIDDLE