How to combine two divs that have the same class - jQuery

后端 未结 5 1317
悲&欢浪女
悲&欢浪女 2020-12-11 09:24

I have a div structure like this

5条回答
  •  再見小時候
    2020-12-11 09:57

    Try

    var $rows = $('.items .itemRow');
    $rows.first().append($rows.not(':first').children())
    $rows.not(':first').remove();
    

    Demo: Fiddle

提交回复
热议问题