Tsallaka zuwa abun ciki
Justice Tech School

Wrapping Elements

wrap, wrapAll and unwrap change structure.

Example
$("p").wrap("<div class=\"box\"></div>");
$("span").wrapAll("<section></section>");
$("p").unwrap();

Exercise

Wrap each.

$("p").("<div></div>")

Quiz Test

What does unwrap do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.