Remove all children
by jfriend00
HTML
<button id="go">Go</button>
<div id="target" style="margin-top: 20px; padding: 5px; border: 1px solid #F00;">
<div>Some text1</div>
<div>Some text2</div>
<div>Some text3</div>
</div>
JavaScript
$("#go").click(function() {
$("#target > *").remove();
});