jquery删除<table>中的某一行

来源:互联网 发布:漯河市网络一年多少钱 编辑:程序博客网 时间:2024/06/07 06:22
删除按钮:<input type="button" value="x" onclick="deleteTr(this)"/>
删除事件: function deleteTr(obj) {                 $(obj).closest('tr').remove();           }(注释:this表示的是按钮所在的当前行。)
0 0