Skip to content
Justice Tech School

Cloning

clone copies elements, optionally with events.

Example
var copy = $("#row").clone();
$("#table").append(copy);
var withEvents = $("#row").clone(true);

Exercise

Copy with events.

$("#r").clone()

Quiz Test

What does clone(true) copy?

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