I have some divs that maybe be empty (depending on server-side logic).
<div id="bar">
<div class="section" style="display:block;"></div>
<div class="section" style="display:block;"></div>
<div class="section" style="display:block;"></div>
</div>
If they don't have any html inside the div's (with class section), I just want to hide them.
How can I do this?
Here is a CSS3 solution for anyone who is interested
div:empty {
display:none;
}