title: jquery delete all children except a div
body: <p>How do I delete everything inside a <code>div</code> except a <code>div/span</code> with <code>class='notsure'</code>? I can delete all children using <code>empty</code> but not sure how to save a specific <code>div</code>.</p>
  
  <pre><code>&lt;div id="test"&gt;
      here is a test
      &lt;p&gt;a paragraph&lt;/p&gt;
      &lt;div class="notsure"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>