How to get content of div which contains JavaScript script blocks?
<p>I have the following HTML</p>

<pre><code>&lt;div id="example"&gt;
  ...some text...
  &lt;script type="text/javascript"&gt;
    ... some javascript...
  &lt;/script&gt;
&lt;/div&gt;
</code></pre>

<p>How to get content of <code>#example</code> but also with the JavaScript?</p>

<pre><code>$("#example").html(),
$("#example").text(),     
$("#example").val()     
</code></pre>

<p>all don't work.</p>
