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 how jquery works?
What does $("P") will select?
Explain the concepts of "$ function" in jquery with an example?
What is the slowest selector in jQuery?
What is the difference between $(this) and 'this' in jquery?
Explain which program is useful for testing jquery?
Tell me how to executed jquery selectors? : jquery mobile
Explain type paremeter of jquery ajax method?
Can you give me a brief history of your programming days? Where did it all start?
Explain bind() vs live() vs delegate() methods.
Why html 5 inputs look different across devices and browsers? : jquery mobile
Can JQuery Run on MAC or Linux instead of Windows?
How we can hide a block of html code on a button click using jquery?
What is the difference between the knockout and jquery?
What is jquery selectors? Give some examples.