且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用jquery删除table列表中<u>标签

更新时间:2022-08-21 08:34:50

//循环去掉a和u标签
$("tbody a").each(function(){  
       var xx=$(this).find("u").html();  
       $(this).replaceWith(xx);  

});  

//去掉u标签

 $("a u").each(function(){  
          var xx=$(this).html();  
          $(this).replaceWith(xx);  
      })