<title>My Example</title>
border: 1px dotted white;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
$( ".box p" ).click( function() {
<p>Click a paragraph to detach it.</p>
<p>The <code>.detach()</code> method is the same as <code>.remove()</code>, except that <code>.detach()</code> keeps all jQuery data associated with the removed elements. This can be useful if you need to insert the removed elements back into the DOM at a later time.</p>