Remove javascript code using jQuery
<p>I used</p>

<pre><code>&lt;div id="myJSDiv"&gt;&lt;script&gt;...&lt;/script&gt;&lt;/div&gt;
$("#myJSDiv").html('');
</code></pre>

<p>and</p>

<pre><code>&lt;script id="myJSDiv"&gt;...&lt;/script&gt;
$("#myJSDiv").remove();
</code></pre>

<p>but nothing removed.</p>

<p>JS script is</p>

<pre><code>&lt;script id="count_down"&gt;
        var ss = 150;
        function countdown() {
            ss = ss-1;
            if (ss&lt;0) {
                window.location="google.com";
            }else {
                document.getElementById("countdown").innerHTML=ss;
                window.setTimeout("countdown()", 1000);
            }
        }
        &lt;/script&gt;
</code></pre>
