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 |
Suppose if you have a server control(asp.net server control, button) and on the click of button you want to call a jquery function, so tell me how you will call a jquery function without postback?
Which one is more efficient, document.getelementbyid( "idname") or $("#idname)?
How to select combobox select value and text using jquery?
What is the difference between .js and .min.js?
What is chaining in jQuery?
Can you write a code to select all links inside the paragraph?
Mention the advantages of cdn? : jQuery Mobile
Can you please explain the difference between body onload() and document.ready() function? : jquery mobile
How we can modify the css class in jquery?
What is cdn and how jquery is related to it?
Explain .siblings() method in jquery?
What are the features of jQuery, has been used in web applications?