benhowdle89
benhowdle89

Reputation: 37464

grab last-child but not of a certain class

So I'm trying this: inner.children('.image:not(dont):last-child').width();

What is the correct way to combine not(classname) and :last-child?

Upvotes: 1

Views: 87

Answers (1)

Zoltan Toth
Zoltan Toth

Reputation: 47667

Try

inner.children('.image:last-child:not(.dont)').width()

Upvotes: 2

Related Questions