I am try to select the last element of a child that does not have a certain class. I have setup a js fiddle.
You have to do the not
prior to the last
:
$("aside.col2 div:not('.quotebox'):last")
http://jsfiddle.net/VATaj/1/
$("aside.col2 div:last:not(.infobox)")
$("aside.col2 :not(.quotebox)").last().addClass("last-round");
Select all of the ones that don't have the class, THEN get the last one.
$("aside.col2 div").not('.quotebox').last();