I am try to select the last element of a child that does not have a certain class. I have setup a js fiddle.
<aside class="col2">
<div class="infobox teal"></div>
<div class="infobox mediumbrown"></div>
<div class="quotebox"></div>
<div class="quotebox"></div>
</aside>
I have tried:
$("aside.col2 div:last").not(".quotebox").addClass("last-round");
Any thoughts?
You have to do the
notprior to thelast:http://jsfiddle.net/VATaj/1/