jQuery - How to select elements that do NOT have a class?

Posted by brandonjp on Stack Overflow See other posts from Stack Overflow or by brandonjp
Published on 2010-04-12T18:46:12Z Indexed on 2010/04/12 18:52 UTC
Read the original article Hit count: 273

How do I get elements that do not have any class names?

        <td class="B A">A03<sub>reserved</sub></td>
        <td class="B R">R70</td>
        <td>105</td>
        <td class="M C">L220</td>

Right now I'm doing this $('td').not('.A, .B, .C, .M, .R')

There's gotta be a better way!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors