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...


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



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

Answer / chaitanya

As explained in previous question, using clone() method, we can create clone of any element but the default implementation of the clone() method doesn't copy events unless you tell the clone() method to copy the events. The clone() method takes a parameter, if you pass true then it will copy the events as well.

Hide Copy Code

$(document).ready(function(){

$("#btnClone").bind('click', function(){

$('#dvClickme').clone(true).appendTo('body');

});

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

In jquery, what is the meaning of toggle?

0 Answers  


Is it possible that jquery html work for both html and xml document?

0 Answers  


How can related code be encapsulated? Give example.

0 Answers  


And finally, if you could give one tip to any new budding jquery ui developers, what would it be?

0 Answers  


Which one is more efficient, document.getelementbyid( "idname") or $("#idname)?

0 Answers  


What does dollar sign mean in jquery? : jQuery Mobile

0 Answers  


Is jQuery is a client or server scripting?

0 Answers  


Can you please explain the difference between javascript and jquery? : jquery mobile

0 Answers  


What is event.stoppropagation? : jquery mobile

0 Answers  


How do you select an item using css class or id and get the value by use of jquery.

0 Answers  


What is slice() method in jquery?

0 Answers  


Difference between javascript and jquery?

0 Answers   HCL,


Categories