If class is not present in table w/jQuery
<p>I need to remove a class from any place withing a table if another class is not found inside a span that is residing inside that table.</p>

<p>Basically I need to do the opposite of hasClass but I'm not sure what I'm doing wrong. Here's my code:</p>

<pre><code>if ($("#nyTable").find("span").not("ui-icon-triangle-1-s")) {
    $("#nyTable").find("td").removeClass("redText");
}

&lt;table&gt;
&lt;tr&gt;
    &lt;td&gt;as&lt;/td&gt;
    &lt;td&gt;asd&lt;/td&gt;
    &lt;td&gt;werwe&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;&lt;span class="ui-icon-triangle-1-s"&gt;asd&lt;/span&gt;&lt;/td&gt;
    &lt;td&gt;&lt;span class="ui-icon-triangle-1-s"&gt;asd&lt;/span&gt;&lt;/td&gt;
    &lt;td&gt;&lt;span class="ui-icon-triangle-1-s"&gt;asd&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>UPDATE: I need to make sure that this class .ui-icon-triangle-1-s <strong>does not exist anywhere in the table</strong>. </p>
