Append cloned paragraph to document body
Description
The following code shows how to append cloned paragraph to document body.
Example
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {<!-- ww w . j a v a 2s.co m-->
$("p").clone().appendTo(document.body);
});
</script>
</head>
<body>
<body>
<p>java 2s.com</p>
</body>
</html>