Home
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $(document).ready(function () { $("button").click(function () { $("p").unwrap(); }); }); </script> </head> <body> <h1>jQuery Manipulation Methods: unwrap()</h1> <div style="border:1px solid red;"><p>This is paragraph.</p></div> <button>Click Here to Test .unwrap()</button> </body> </html>
Result: