jQuery remove HTML table column

后端 未结 11 1395
粉色の甜心
粉色の甜心 2020-12-13 07:13

I have a HTML table like this:

DE
11条回答
  •  温柔的废话
    2020-12-13 08:07

    Try this, i got the exact out put

    var colnum = $(e.target).closest("td").length;
    $(e.target).closest("table").find("tr").each(function(){ 
    $(this).find("td:eq(" + colnum + ")").remove()});
    

提交回复
热议问题