Skip first N elements in JQuery

后端 未结 4 1574
迷失自我
迷失自我 2020-12-11 00:40

I would like to know, how can I skip first N elements in JQuery. Something like this:

1
2&l
4条回答
  •  时光说笑
    2020-12-11 01:12

    I think you are looking for the :gt selector: http://api.jquery.com/gt-selector/ Note that you start counting from 0 here.

    Try:

    $('#test > div:gt(1)')
    

提交回复
热议问题