<!DOCTYPE html PUBLIC "- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>jQuery And Script Tags</title>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript">
$(
function(){
var jScripts = $( "#scripts script" );
var jOutput = $( "#output" );
jScripts.each(
function( intI, objScript ){
var jThis = $( this );
jOutput.append(
"<li>" +
jThis.html() +
"</li>"
);
}
);
}
);
</script>
</head>
<body>
<h1>
jQuery And Script Tags
</h1>
<div id="scripts">
<script type="text/plain">
Plain text in script tag.
</script>
<script type="text/plain">
More plain text in script tag.
</script>
</div>
<ul id="output" />
</body>
</html>