Removing Children of DIV after certain Number

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

I have this HTML

5条回答
  •  既然无缘
    2020-12-30 10:12

    $('.controll>div:gt(1)').remove();
    

    :gt selector will let you select which has index greater then 1 theese are 3. elements and more

    here is example: http://jsfiddle.net/Am7Vw/1/

提交回复
热议问题