$(document).ready(function () { $("#empty").click(function () { $("#targetDiv").empty(); }); });
<html> <head> <title>empty</title> </head> <body> <div id="targetDiv"> <p>This is p element inside div.</p> <span>This is span element inside div.</span> <h4>This is h4 element inside div.</h4> </div><br /> <input type="button" id="empty" value="empty"/> <input type="button" id="reset" value="Reset" onclick="location.reload()" /> </body> </html>