Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create clone of any object using jQuery?



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

Post New Answer

More jQuery Interview Questions

Does events are also copied when you clone any element in jQuery?

1 Answers  


Difference between find() and closest() in jquery?

0 Answers  


Can we use our own specific character in the place of $ sign in jQuery?

1 Answers  


How do I check if an element is hidden in jQuery?

0 Answers  


How to select combobox select value and text using jquery?

0 Answers  


What is the use of val() method in jquery?

0 Answers  


Can you give me a brief history of your programming days? Where did it all start?

0 Answers  


Explain the each() function?

0 Answers  


How to create clone of any object using jQuery?

1 Answers  


What are the difference between alert() and confirm()?

0 Answers  


Is window.onload is different from document.ready()?

0 Answers  


How to create, read and delete cookies with jquery?

0 Answers  


Categories