如果子div不包含标记,如何隐藏父div?

如果子div(即.post-title)不包含标签,我试图隐藏父div(即#post)。 有关如何使用我修改过的代码正确完成此操作的任何见解?

 
 $('.post-title').not($('a').hide($("#post"));