Using an if statement to check if a div is empty
<p>I'm trying to remove a specific div if a separate div is empty. Here's what I'm using:</p>

<pre><code>$(document).ready(function(){
if ('#leftmenu:empty') {
$('#menuTitleWrapper').remove();
$('#middlemenu').css({'right' : '0', 'position' : 'absolute'});
$('#PageContent').css({'top' : '30px', 'position' : 'relative'});
};
</code></pre>

<p>I think this is close but I can't figure out how to write the code to test of #leftmenu is empty. Any help is appreciated!</p>
