IF container "x" does not contain div "n"? JS
<p>I was wondering if its possible to make an <code>IF</code> statement, where if a container (parent div) contains/does not contain a certain div....</p>

<pre><code>&lt;div class="parent" id="x"&gt;need to check if div id "n" is here....&lt;/div&gt;
</code></pre>

<p>So, <code>IF</code> the parent container ("<code>x</code>") does not contain the div "<code>n</code>", then insert it (which I already know how to do).</p>

<p>Is the above even possible to achieve? </p>

<p>JS and JQuery can be used by the way..</p>

<p>Thanks</p>
