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

You get "jquery is not defined" or "$ is not defined" error. What could be the reason?

1 Answers  


What are the guidelines for an application to follow the principles of progressive enhancement.

0 Answers  


Whether we need to add jQuery file in both Master and Content page?

0 Answers  


What is the difference between jquery and javascript?

0 Answers  


How to use jquery?

0 Answers  


What does dollar sign mean in jquery? : jQuery Mobile

0 Answers  


How to get the style property of an element using ?

0 Answers  


How to get the server response from an ajax request using jquery?

0 Answers  


How we can modify the css class in jquery?

0 Answers  


In what situation you would use multiple version of jQuery and how would you include them?

1 Answers  


Which is the starting point of code execution in jQuery?

1 Answers  


Can we use jQuery to make ajax request?

2 Answers  


Categories