While loading page in mozilla, First DIV code is not loaded
<p>While loading page in mozilla, First DIV code is not loaded
tried to load html using inside</p>

<pre><code>&lt;div id="mainContent"&gt;&lt;/div&gt;
</code></pre>

<p>with below call</p>

<pre><code>if (destinationURL != null) {
$.get(destinationURL, function(data) 
{               
  $("#mainContent").attr("innerHTML",data); 
});
}
</code></pre>

<p>destinationURL refers below sample html</p>

<pre><code>&lt;div id="A1"&gt;
&lt;div id="B1"&gt;
    &lt;div id="c1"&gt;
        &lt;span&gt;hi&lt;/span&gt;
    &lt;/div&gt;
    &lt;div id="c2"&gt;&lt;/div&gt;
&lt;/div&gt;
    &lt;div id="B2"&gt;
    &lt;div id="D1"&gt;
        &lt;span&gt;hi2&lt;/span&gt;
    &lt;/div&gt;
    &lt;div id="D2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="B3"&gt;
    &lt;div id="E1"&gt;&lt;/div&gt;
    &lt;div id="E2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="B4"&gt;
    &lt;div id="F1"&gt;&lt;/div&gt;
    &lt;div id="F2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>but, when html loads</p>

<pre><code>$("#c1") refers null object
</code></pre>

<p>if i see </p>

<pre><code>$("#D1") contains html.
</code></pre>

<p>if i give alert message on onLoad, i can able to get Html. Its happening only in mozilla</p>
