I\'m trying to remove a specific div if a separate div is empty. Here\'s what I\'m using:
$(document).ready(function () { if (\'#leftmenu:empty\') {
also you can use this :
if (! $('#leftmenu').children().length > 0 ) { // do something : e.x : remove a specific div }
I think it'll work for you !