jQuery('.level-1').each(function(){ if(jQuery(this).find('ul').length == 0){ jQuery(this).append(''); } });

Offene Stellen