Using an if statement to check if a div is empty

前端 未结 10 1116
忘了有多久
忘了有多久 2020-11-28 03:20

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\') {
             


        
10条回答
  •  攒了一身酷
    2020-11-28 03:21

    if (typeof($('#container .prateleira')[0]) === 'undefined') {
        $('#ctl00_Conteudo_ctrPaginaSistemaAreaWrapper').css('display','none');
    }
    

提交回复
热议问题