Removing Children of DIV after certain Number

后端 未结 5 472
庸人自扰
庸人自扰 2020-12-30 09:59

I have this HTML

5条回答
  •  清酒与你
    2020-12-30 10:15

    If you mean those specific ones:

    $(".ui-resizable-handle, .delete").remove();
    

    If you mean the divs at positions 2-4 no matter the markup, one of the nth-child() answers would work.

提交回复
热议问题