If parent element does not contain certain child element; jQuery
<pre><code>&lt;div class="test"&gt;
 &lt;div class="example"&gt;&lt;/div&gt;
&lt;/div&gt;

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

<p>How can I apply jQuery to an element with the class <code>test</code> only if it doesn't contain a child element with the class <code>example</code>?</p>
