Test case for jQuery Ticket 7923

retrieve content of a script tag

by jitter

HTML

<script id="scriptTag" type="text/x-whatever">
    <![CDATA[
        This is the cdata text.
    ]]>
</script>

<textarea id="output" cols="30" rows="30"></textarea>

JavaScript

$("#output").val( $("#scriptTag").html() );