<tr><td><input type='hidden' name='annex' value="+rs+"><a href='javascript:void(0);' onclick=\"download('"+rs+"')\">"+rs+"</a><span onclick='deleteTr(this);' style='cursor:pointer'>&nbsp;&nbsp;删除</span></td& gt;</tr>

<script>
//删除当前行
     function deleteTr(nowTr){
                        //多一个parent就代表向前一个标签,
                         // 本删除范围为<td><tr>两个标签,即向前两个parent
                         //如果多一个parent就会删除整个table
        $(nowTr).parent().parent().remove();
     }

</script>

相关文章:

  • 2022-01-06
  • 2021-08-22
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-10-29
  • 2021-10-03
相关资源
相似解决方案