1<!DOCTYPE html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<title>jQuery Remove Wrapper Element</title>
6<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
7<script>
8 $(document).ready(function(){
9 $("button").click(function(){
10 $("p").find("a.link").contents().unwrap();
11 });
12 });
13</script>
14</head>
15<body>
16 <p>If you click the following button it will remove the anchor tag from <a href="#" class="link">this link</a> but keep the text content intact.</p>
17 <button type="button">Remove Link</button>
18</body>
19</html>