[jQuery] How to move the DIV?
<pre><font size="4">Hi there,
I am trying to move the div object, but it seems doesn't work. any ideas? Thanks
<script language=<span style="color: rgb(51, 102, 204);">"javascript"</span>>
$<span style="color: rgb(102, 204, 102);">(</span>document<span style="color: rgb(102, 204, 102);">)</span>.<span style="color: rgb(0, 102, 0);">ready</span><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(0, 51, 102); font-weight: bold;">function</span> <span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">{</span>
$<span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(51, 102, 204);">"<div/>"</span> <span style="color: rgb(102, 204, 102);">)</span>
.<span style="color: rgb(0, 102, 0);">attr</span><span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">"id"</span>, <span style="color: rgb(51, 102, 204);">"myDiv"</span><span style="color: rgb(102, 204, 102);">)</span>
.<span style="color: rgb(0, 102, 0);">addClass</span><span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">"header"</span> <span style="color: rgb(102, 204, 102);">)</span>
.<span style="color: rgb(0, 102, 0);">html</span><span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">"hello world"</span><span style="color: rgb(102, 204, 102);">)</span>
.<span style="color: rgb(0, 102, 0);">appendTo</span><span style="color: rgb(102, 204, 102);">(</span> $<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">"body"</span> <span style="color: rgb(102, 204, 102);">)</span> <span style="color: rgb(102, 204, 102);">)</span>;
$<span style="color: rgb(102, 204, 102);">(</span> <span style="color: rgb(51, 102, 204);">"myDiv"</span> <span style="color: rgb(102, 204, 102);">)</span>.<span style="color: rgb(0, 102, 0);">css</span><span style="color: rgb(102, 204, 102);">(</span><span style="color: rgb(51, 102, 204);">'left'</span>, <span style="color: rgb(51, 102, 204);">'150px'</span><span style="color: rgb(102, 204, 102);">)</span>;
<span style="color: rgb(102, 204, 102);">}</span><span style="color: rgb(102, 204, 102);">)</span>;
</script></font></pre>