jQuery select a div with a certain class, that doesn't have another class
<div class="fuu">
...
</div>
<div class="fuu no">
...
</div>
...
How can I select all fuu
's besides the ones that have the .no
class?
Solution 1:
Use :not()
to exclude the other class:
$('.fuu:not(.no)')
Solution 2:
You can also filter out the '.no' class with something like:
$('.fuu').not('.no');