jQuery - move element with javascript inside
<p>I'm using jquery to move a element that contains javascript code inside it, like this:</p>

<pre><code>&lt;li class="a1"&gt;
 &lt;div class="el"&gt; 
    &lt;script type="text/javascript"&gt; document.write('Hello World'); &lt;/script&gt;
    ...
 &lt;/div&gt;
&lt;/li&gt;

&lt;li class="a2"&gt;     
&lt;/li&gt;

&lt;a class="trigger"&gt;link&lt;/a&gt;
</code></pre>

<p>so I attached a click event on a.trigger that will move div.el into the 2nd list.
the problem is that the js inside it makes the browser to open a new window only with div.el inside it :(</p>
