jQuery - Append JavaScript to a Div
<p>I'm using <a href="http://en.wikipedia.org/wiki/JQuery">jQuery</a> to append some <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> when an item is expanded.</p>

<p>But the JavaScript code inside of the jQuery function is causing the rest of the jQuery code to explode.</p>

<pre><code>$(this).parent('li').find('.moreInfo').append('&lt;script&gt;alert("hello");&lt;/script&gt;');
</code></pre>

<p>What can I do to solve this problem?</p>
