jquery Checking to see if element has element
<p>I'm using jquery 1.3 and is trying to duplicate the 1.4 .has functionality.</p>

<p>I need to check if the .page element contains the image, and if it doesn't, append it.</p>

<p>Is it something like:</p>

<pre><code>var imageid = thirdimage;

if ($('#page:has(#'+imageid+')') === undefined) {
   $('#page').append($('#'+imageid));
}
</code></pre>

<p>Thanks.</p>
