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

Explain the use of each function in jquery?

0 Answers  


How do you check if an element is empty?

1 Answers  


Explain why there are two different version of jquery library? : jquery mobile

0 Answers  


Does jQuery 2.0 supports IE?

3 Answers  


Explain remove class jquery with example?

0 Answers  


Explain the each() function?

0 Answers  


Define slidetoggle() effect?

0 Answers  


Explain event.preventdefault? : jquery mobile

0 Answers  


Explain each() function in jquery?

0 Answers  


How can events be prevented from stopping to work after an ajax request?

0 Answers  


What is the difference between the knockout and jquery?

0 Answers  


How do you disable or enable a form element?

0 Answers  


Categories