How do I remove HTML and special charaters using jQuery?

后端 未结 6 959
走了就别回头了
走了就别回头了 2021-01-29 11:44

So what I want to do is remove all of the HTML table tag elements, leaving the link tags alone.


&l         
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-29 12:21

    var $myTable = $('#myTableId'); //Add id="myTableId" to the table you want select
    $myTable.replaceWith($myTable.children('a').wrapAll('
    '));

提交回复
热议问题