Iterate through and delete empty HTML table rows with jQuery

前端 未结 4 961
梦如初夏
梦如初夏 2021-01-18 18:50

I am attempting to iterate through a HTML table using jQuery and delete empty rows. The page is driven by ASP.NET and with certain permission, items in the table will be hid

4条回答
  •  迷失自我
    2021-01-18 19:21

    I think it is better to use the '.parent()' method, because a 'tr' tag is always the next parent from a 'td' tag.

提交回复
热议问题