Jquery: Add class unless there is a child of certain class
<p>I want to do an addclass, but only if it doesn't have a child of a certain class.</p>

<pre><code>$selector.addClass('addthisclass');
</code></pre>

<p>So I want:</p>

<pre><code>&lt;div class="addthisclass"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
</code></pre>

<p>And nothing on here.</p>

<pre><code>&lt;div&gt;&lt;span class="badclass"&gt;&lt;/span&gt;&lt;/div&gt;
</code></pre>

<p>Anyone know how to do this?</p>
