Is there an elegant way with jQuery to find elements that have class A and don't have class B, something like
$('#canvas .A !.B').each(functon() {
do something
});
I'm pretty sure that's not going to work, but that's the idea.
I know I could do
$('#canvas .A').each(function() {
if(!$(this).hasClass('B'){
do something
}
});
but that feel really clunky.
Thanks