Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="parent">
- <div id="child">
- <span>some text</span>
- </div>
- </div>
- div
- {
- padding: 20px;
- }
- #parent
- {
- background-color: green;
- }
- #child
- {
- background-color: red;
- }
- $('#child').unwrap();
- $('#child').unwrap();
- var o = $('#child').html();
- $('#parent`).html(o);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement