CodeToFun
Learn Programming Free
Tutorials
Languages
Features
About
Sign In
Tutorials
Languages
Features
About
Sign In
Back
/
jQuery .unwrap() Method
jQuery .unwrap() vs .remove() (Try It)
Try It
Run
Reset
Save
Save to Google Drive
Sync with your Google account
Download HTML
Save to your device
Share
Full
HTML Code
Copy
unwrap vs remove
#a — unwrap span (parent .wrap removed)
Keep this text
#b — remove span (text deleted)
Delete this text
Unwrap #a span
Remove #b span
Click a button to see the difference.
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run