Remove all empty elements with jQuery (keep img tags)
<p>I'm trying to remove all empty elements inside a div and found a solution however, it's using CSS3 selectors and I'm pretty sure it's not cross browser. Here is what I have working on FF:</p>

<pre><code>$("#container *:empty:not(img)").remove();
</code></pre>
