$(document).ready(function () { $("#myButton").click(function () { $("#targetP").append("<h3>Jquery is easy to learn.</h3>"); }); });
<html> <head> <title>append</title> </head> <body> <p id="targetP">Jquery is amazing.</p><br /> <input type="button" id="myButton" value="append"/> <input type="button" id="reset" value="Reset" onclick="location.reload()" /> </body> </html>
#targetP { background-color:Orange; }