Javatpoint Logo
Javatpoint Logo

jQuery clone()

The jQuery clone() method is used to make copies of the set of matched elements. It also makes copies of their child nodes, texts and attributes. The clone() method is a convenient way to duplicate elements on a page.

Syntax:

Parameters of jQuery clone() method

Parameter Description
True It specifies that event handlers also should be copied.
False It is a default parameter. It specifies that event handler should not be copied.

Example of jQuery clone() method

Let's take an example to demonstrate the effect of jQuery clone() method.

Test it Now
Next TopicjQuery remove()




Please Share

facebook twitter google plus pinterest tumbler

Learn Latest Tutorials