How to detect an empty div using jQuery?
<p>I can't use:</p>

<pre><code>$('div:empty')
</code></pre>

<p>because the div might have empty spaces in it. I want to remove it if it has nothing or nothing but empty spaces.</p>
