$('.item').not('.type_2')
MaurĂ­cio
---------------------------------------------------------------------------
-----Mensagem Original----- De: "nood" <nigelhil...@googlemail.com>
I want to select elements that have the class "item" and don't have
the class "type_2" such as in this code

<span class="item type_1">A</span>
<span class="item type_2">B</span>
<span class="item type_2">C</span>
<span class="item type_3">D</span>

I don't know how many "type_x" classes there may be there so it's not
a case of just targeting the right one. I know there's a not somewhere
but I don't understand how to say this AND :not(that)


Reply via email to