I thought this would be rather simple but it seems the empty method is not working to clear out a tbody that I have. I would appreciate if anyone knows a proper way to do this,
Without use ID () , it is a great way to cope with this issue $('#table1').find("tr:gt(0)").remove(); PS:To remove specific row number as following example $('#table1 tr').eq(1).remove(); or $('#tr:nth-child(2)').remove(); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
) , it is a great way to cope with this issue $('#table1').find("tr:gt(0)").remove(); PS:To remove specific row number as following example $('#table1 tr').eq(1).remove(); or $('#tr:nth-child(2)').remove(); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
$('#table1').find("tr:gt(0)").remove();
PS:To remove specific row number as following example
$('#table1 tr').eq(1).remove();
or
$('#tr:nth-child(2)').remove();