jQuery selector - all but the first

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

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

<
8条回答
  •  难免孤独
    2020-12-07 01:55

    Use the :not() selector. For example:

    $(".member-info:not(first)").hide();
    

    If first is really always the first child, try

    $(".member-info:not(member-info:first)").hide();
    

提交回复
热议问题