How to select last child that is even number except for second?
How can I select the last child of a div that is an even number and for this to apply to all last children except if the last child also happens to be the second of its type?
if ($this.is(':last-child')) {
$this.addClass('end');
$("<div class='clearfix'></div>").insertBefore(this);
}