jQuery selector - all but the first

前端 未结 8 2028
日久生厌
日久生厌 2020-12-07 01:22

I have a small jQuery selectors question, I have the following html:

<
8条回答
  •  天命终不由人
    2020-12-07 02:13

    I came across this issue as well. However, I did not conveniently have a class named first marking my element for exclusion. Here was the solution I used for the selector in the context of this example:

    $('.member-info:not(:first)');//grab all .member-info except the first match
    

提交回复
热议问题