How to append <script> that will be executed?
<p>Tried <a href="http://jsfiddle.net/kxALH/2/" rel="nofollow">this</a> :</p>

<pre><code>&lt;a href="#" id="showAlert"&gt;Click me&lt;/a&gt;
&lt;div id="pasteContent"&gt;&lt;/div&gt;
​
var elemFunc = '&lt;script&gt;alert("myString");&lt;/script&gt;';

$("#showAlert").click(function () {
    $("#pasteContent").html(elemFunc);
});
​
</code></pre>

<p>What I'd like to do is to append the string alert(myString); (which is a script) that must be executed... how can I do? Is it not correct?</p>
