jQuery delete table column

前端 未结 6 605
北荒
北荒 2020-12-17 00:40

I have a table and cannot change markup:

From above example table we can remove 3rd column of table as follow.

$(.btnRemoveMember).closest('td').remove();

提交回复
热议问题
6条回答
  •  悲&欢浪女
    2020-12-17 01:25

    By Applying some class on targeted column we can remove it. For example

ID Name