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
Can there be more than one ready function in jquery?
explain width() vs css(‘width’) in jquery
What is jquery datepicker in jquery?
Which sign is used as a shortcut for jQuery?
How you will use jquery means requirement needed for using jquery.
How to load a page using jquery mobile? : jquery mobile
Difference between detach and remove? : jQuery Mobile
How to debug jquery code/ debug jquery?
What is the difference between onclick and onsubmit?
What are two different version of jquery library? : jquery mobile
How to check if number is numeric while using jquery 1.7+? : jquery mobile
Explain the difference between event.preventdefault and "return false"? : jquery mobile
What are jquery plugins?
Jumping off of jquery ui for a second, do you 'release early, release often' with all of your projects? What are your thoughts on that strategy?
List the advantages of jquery?