Side navigation
Ticket #5977: test.html
File test.html, 0.8 KB (added by cmcnulty, January 29, 2010 04:04AM UTC)
test case
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
alert($("#template").val());
$("#test").html($("#template").val());
alert($("#test").html())
});
</script>
<div id="test"></div>
<fieldset>
<textarea id="template">
<style type="text/css">
.test { color: red; }
</style>
<div id="nav_controls" class="navControls">
<div id="test_div" class="test">A test</div>
</div>
</textarea>
</fieldset>
</body>
</html>
Download in other formats:
Original Format
File test.html, 0.8 KB (added by cmcnulty, January 29, 2010 04:04AM UTC)
test case
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
alert($("#template").val());
$("#test").html($("#template").val());
alert($("#test").html())
});
</script>
<div id="test"></div>
<fieldset>
<textarea id="template">
<style type="text/css">
.test { color: red; }
</style>
<div id="nav_controls" class="navControls">
<div id="test_div" class="test">A test</div>
</div>
</textarea>
</fieldset>
</body>
</html>