How to get html() from element excluding another element?
<p>Sorry for real stupid question. But it does not work either way.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script src='js/jquery.js' type='text/javascript'&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;
  $(document).ready(function() {
    var htmlcontent = $('.content').not('.dontgrab').html();
    alert(htmlcontent); // returns EVERYTHING
  });
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class='content'&gt;
  BEFORE
  &lt;div class='dontgrab'&gt;DON'T GRAB&lt;/div&gt;
  AFTER
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Tried $(".content *:not('.dontgrab')").html(); // returns NULL</p>

<p>Please help.</p>

<p>Thanks.</p>
