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

前端 未结 7 1581
长发绾君心
长发绾君心 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();
    });
    

提交回复
热议问题