Hide row if it contains empty columns

前端 未结 4 1431
我在风中等你
我在风中等你 2021-01-21 08:26

I have a table with a couple of rows, each row with two columns, the first column will hold title and second column will have the respective values.sometimes, cells in the right

4条回答
  •  一生所求
    2021-01-21 09:07

    You can try this:

        $(document).ready(function(){
        $('.EventDetail tr').each(function(){      
            if ( $(this).children().not('.TableFields').text().length == 0 )
                $(this).hide();
        }); 
    });
    

提交回复
热议问题