jQuery find element on page when using load(), that are outside of element you load into
<p>Alright, I have a page that makes use of <code>load()</code> for one of the elements on that page. Which generally works fine. However theres a new feature being added in, and I've done stumped myself. So this is how it works, the page is php/html when the page loads (the parent not the element in question) it adds an element to the page that only exists in a particular instance of the product, when one specific piece of criteria is met.. So with that the element that uses <code>load()</code> needs to see if that element is on the page.</p>

<p>Normally I'd use something like</p>

<pre><code>if($('#element').length &gt; 0)
{
   //found, do something
}
</code></pre>

<p>I am typically not a fan of load myself, but this is how the system was built initially and a lot of other things tie into this existing feature. So rewriting it is not an option currently. </p>

<p>Anyway what I am finding out now is that its not finding the element I need to find in the parent elements that rendered initially. my little if-else up there won't work. So I am wondering is there a work around for this?</p>

<p><em><strong>EDIT</em></strong>
The html I am talking about I will try to elaborate on here to express where the issue is.</p>

<pre><code>&lt;html&gt;
   &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;

Everything in here initially renders server-side.
In the event a particular case is found the php also renders an addition div
&lt;div id="specialDiv"&gt;some text&lt;/div&gt;
Link Link Link Link Link
&lt;div id="elementwithLoad"&gt;
   when a link outside of this element is clicked (just for sake of example).
   the jquery load() event is fired off, and loads an external html file.
   its from within this element that I need to find "specialDiv" thats sitting on the outside of this element.
   which doesn't seem to be working through the normal means of my above if-else which is placed inside of this HTML file.
&lt;/div&gt;

   &lt;/body&gt;
&lt;/html&gt;
</code></pre>
