SyntaxFix
Write A Post
Hire A Developer
Questions
You need the :not() selector:
:not()
$('div[class^="first-"]:not(.first-bar)')
or, alternatively, the .not() method:
.not()
$('div[class^="first-"]').not('.first-bar');