CodeToFun
Learn Programming Free
Tutorials
Languages
Features
About
Sign In
Tutorials
Languages
Features
About
Sign In
Back
/
jQuery .appendTo() Method
jQuery .appendTo() — move heading (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
move heading appendTo
Greetings
(heading starts here)
Container — heading will move here
Move h2 into .container
$("h2").appendTo($(".container")) — single target moves node.
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run