开发者社区> 问答> 正文

jquery remove() IE9 不能执行怎么办?

<tr><td><input type='button' class='button delNew' value='删  除' onclick='javascript:$(this).parent().parent().remove();'/></td></tr>

上面的代码 点击按钮不能删除tr 怎么办

展开
收起
a123456678 2016-07-13 10:12:20 2357 0
1 条回答
写回答
取消 提交回答
  • $("input.button.delNew").click(function(){
    
        $(this).parent().parent().remove();
    
    });
    2019-07-17 19:55:22
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
穆客带你快速定位 Node.js 内存泄露 立即下载
穆客带你快速定位Node.js内存泄露 立即下载
Let's Work Together On The Future Of JavaScript Through TC39 立即下载