checking if 2 elements exist and moving ul inside another div using jquery?
<p>I would like to check if <code>div#tab7</code> AND <code>ul.Gal_3</code> exists on the page. If it does then i would like to move the entire contents of <code>ul.Gal_3</code> within <code>div#tab7</code></p>

<p>Here is my code for the conditional part, but unsure on the last bit?
Also is there a performance decrease in doing this?</p>

<pre><code>if ($('div#tab7').length &gt; 0 &amp;&amp; ('ul.Gal_3').length &gt; 0) {
    //it exists so now move the contents of the UL inside the div#tab7
}
</code></pre>
