$("#cloneElement").clone().appendTo("#clonePasteElement");
Copy Paste This Code Below And Simply Do What Ever Your Planning To Do With It
<!DOCTYPE html>
<html>
<head>
<title>Cloning</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#cloneElement").clone().appendTo("#clonePasteElement");
});
});
</script>
</head>
<body>
<div id="cloneElement">( This Text Will Be Cloned )</div >
<br>
<div>Copied Text Will Be Pasted Below</div >
<br>
<hr>
<div id="clonePasteElement"></div>
<hr>
<button>Clone</button>
</body>
</html>
No comments:
Post a Comment