remove table row with specific id

后端 未结 9 1159
时光取名叫无心
时光取名叫无心 2021-02-05 01:16

I have the following table:


 &l         
相关标签:
9条回答
  • 2021-02-05 01:57

    Remove by id -

    $("#3").remove();

    Also I would suggest to use better naming, like row-1, row-2

    0 讨论(0)
  • 2021-02-05 02:06
    $('#3').remove();
    

    http://api.jquery.com/remove/

    0 讨论(0)
  • 2021-02-05 02:06

    Try:

    $("#test tr:eq(2)").remove();
    
    0 讨论(0)
提交回复
热议问题
bla
bla