select last child of element that does not have a certain class

后端 未结 4 1853
谎友^
谎友^ 2021-01-16 19:23

I am try to select the last element of a child that does not have a certain class. I have setup a js fiddle.

4条回答
  •  误落风尘
    2021-01-16 19:31

    You have to do the not prior to the last:

    $("aside.col2 div:not('.quotebox'):last")
    

    http://jsfiddle.net/VATaj/1/

提交回复
热议问题