WeCodeAcademy

jQuery Clone, Wrap and Data

Examplehtml
Open in editor »

.clone() copies an element, .wrap() puts a new parent around it, and .data() reads data-* attributes (and converts numbers for you).

Quick check

Which method makes a copy of an element?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.