append DOM node
<p>im having problems with appending DOM nodes..</p>

<p>this doesn't work:</p>

<pre><code>this.loader = $(document.body).append('&lt;div class="loader" style="display:none"&gt;loader&lt;/div&gt;');

$(this.loader).fadeIn(1000);
</code></pre>

<p>but this works:</p>

<pre><code>this.loader = DOM.div(document.body);
with(this.loader){
    className = 'loader';
    innerHTML = 'loader';
    style.display = 'none';
}

$(this.loader).fadeIn(1000);
</code></pre>

<p>can anybody tell me what is wrong?!</p>

<p>but if I do like this the div gets added and its visible</p>

<pre><code>this.loader = $(document.body).append('&lt;div class="loader"&gt;loader&lt;/div&gt;');
</code></pre>
