$('.block').each(function(){ if($(this).find('.content').html()==''){ $(this).hide(); } });
Please note: JavaScript is required to post comments.