jQuery clone() Method
Clone all <p> elements and insert them at the end of the <body> element:
Try it yourself »
Definition and Usage
The clone() method makes a copy of selected elements, including child nodes, text and attributes.
|true||Specifies that event handlers also should be copied|
|false||Default. Specifies that event handlers should not be copied|
Try it Yourself - Examples
Copy an element including event handlers
How to use the clone() method to copy an element, including event handlers.
Thank You For Helping Us!
Your message has been sent to W3Schools.