How to create clone of any object using jQuery?
Answer / 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 |
Please explain remove class jquery with example?
Tell me does jquery 2.0 supports ie? : jquery mobile
What are some of the ways to provide effects? : jQuery Mobile
With jquery ui 1.7 being released in the last few days, what do you see as the key parts of jquery ui 1.7? What are you most proud of out of that release?
How do you check or uncheck a checkbox input or radio button?
How to disable cut,copy and paste in TextBox using jQuery?
Tell me how to disable jquery animation? : jquery mobile
Is jQuery is a client or server scripting?
How can you get the type of arguments passed to a function?
Define type paremeter of jquery ajax method?
Can we use protocol less URL while referencing jQuery from CDNs?
Whether jQuery HTML work for both HTML and XML documents?