How can i hide certain table column in a HTML table using CSS

前端 未结 7 1583
长发绾君心
长发绾君心 2021-01-26 18:05

I have a html table which is as follows

col1 c
相关标签:
7条回答
  • 2021-01-26 18:54

    this is a jquery solution. it checks if there is only a whitespace in there... if yes, it hides it.

    $('td').each(function(){
      if($(this).html() == " ")
          $(this).hide();
    });
    
    0 讨论(0)
提交回复
热议问题