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

What are the various ajax functions available in jquery ?

0 Answers  


How does jquery store data related to an element?

0 Answers  


How to revert the most recent ‘destructive’ operation, changing the set of matched elements to its previous state using ?

0 Answers  


How to validate email using jquery?

0 Answers  


Can we have multiple document.ready() function on the same page?

1 Answers  


How can jquery be used in conjunction with another javascript library that also uses $ for naming?

0 Answers  


How do I check if an HTML element is empty using jQuery?

0 Answers  


What is meant by the term ‘theming’ in jquery mobile? : jQuery Mobile

0 Answers  


Is it possible to hold or delay document.ready execution for sometime?

1 Answers  


Explain the difference between javascript and jquery? : jquery mobile

0 Answers  


Is jquery a w3c standard? : jquery mobile

0 Answers  


What is eq()? : jquery mobile

0 Answers  


Categories