Prev Demo
jQuery
>
.Unwrap() - Unwrap Parent Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <div id="divScroll" style="height:100px;width:300px;overflow:scroll;"> <p id="divP" style="height:300px;width:500px;background:#efefef;"> This is looking nice. </p> </div> <script> $("#divP").unwrap();); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output