Edit This Code:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        $("body").append($("p:first").clone(true));
    });
    $("p").click(function(){
        $(this).animate({fontSize: "+=1px"});
    });
});
</script>
</head>
<body>

<p>Click this paragraph to increase text size.</p>
<p>This is another paragraph.</p>

<button>Copy the first p element (including event handlers), and append to body element</button>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy