Hide row if it contains empty columns

前端 未结 4 1445
我在风中等你
我在风中等你 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条回答
  •  梦毁少年i
    2021-01-21 09:01

    I think this will work:

    $('.EventDetail tr').has('td:nth-child(2):empty').hide()
    

    You can try it on jsFiddle.

提交回复
热议问题