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

Explain the use of the .pushstack() method.

0 Answers  


Have any of your startup projects failed dismally - if so, why and how did you learn from them?

0 Answers  


What are the basic selectors in jQuery?

0 Answers  


Difference between document.ready and window.onload? : jQuery Mobile

0 Answers  


Difference between event.PreventDefault and event.stopPropagation?

0 Answers  


How can you apply a style on an element using jQuery?

0 Answers  


Where jquery mobile works? : jquery mobile

0 Answers  


Tell me which program is useful for testing jquery?

0 Answers  


What is the difference between find and children methods?

0 Answers  


What were the biggest challenges of getting the 1.7 release out there?

0 Answers  


What is a cdn? : jQuery Mobile

0 Answers  


How to debug jquery code/ debug jquery?

0 Answers  


Categories