How to remove current row from table in jQuery?

后端 未结 2 1737
借酒劲吻你
借酒劲吻你 2020-12-23 23:19

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.

提交回复
热议问题