I have a table in html as follows
test content 2条回答 -上瘾入骨i (楼主) 2020-12-23 23:48 Nicer: $(this).closest('tr').remove(); More on closest() This has the benefit of working no matter what your HTML looks like in the cell. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Nicer:
$(this).closest('tr').remove();
More on closest()
This has the benefit of working no matter what your HTML looks like in the cell.