Tag: 秀 隐藏

jQuery:如果所有子div的html为空,则隐藏父div

我有一个包含三个子div的父div,我想检查子div以查看它们是否为空,如果它们都是空的,我想隐藏父div,以便背景在我的设计中消失。 test jQuery(“.tot1:empty, .tot2:empty, .tot3:empty”).parent().hide();