Answer Posted / chaitanya
jQuery provides clone() method which performs a deep copy of the set of matched elements, meaning that it copies the matched elements as well as all of their descendant elements and text nodes.
Hide Copy Code
$(document).ready(function(){
$('#btnClone').click(function(){
$('#dvText').clone().appendTo('body');
return false;
});
});
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain .on()? : jquery mobile
Explain jquery filter?
What are the advantages of jQuery?
Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile
What are the different types of selectors?
Does jquery follow w3c recommendations?
What is serialize() in jquery?
What is jquery toggle function?
Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile
Can we include multiple version of jquery? : jquery mobile
How to write cookies in jquery?
How you will use jquery means requirement needed for using jquery.
How We Can Write Code Specific To Browser In Jquery?
What is CDN?
What is ajax and how it works?