Posted On: Feb 22, 2018
The clone method in jQuery is used to make a copy of the selected elements. It copies the child nodes, text, and attributes of the selected element.
Syntax
$(selector).clone(true|false)
The optional parameter true or false specifies whether to clone the event handler or not. This method returns the cloned values of the selected elements.
Never Miss an Articles from us.
jQuery is a lightweight JavaScript library which gives a quick and simple method for HTML DOM traversing and manipulati..
There are many advantages of JQuery. Some of them are :It is more like a JavaScript enhancement so there is no overhea..
There are 3 types of selectors in JqueryCSS Selector XPath Selector Custom Selector..