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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between width() vs css(‘width’) in jquery

761


Explain the features of jquery?

818


Tell me how to select combobox select value and text using jquery?

847


How do I pull a native DOM element from a jQuery object?

846


Explain remove class jquery with example?

790


Tell me how to disable jquery animation? : jquery mobile

752


What is the use of html() method in jquery?

847


What are the different ways of using $.connect function in jquery?

813


Tell me is jquery a w3c standard? : jquery mobile

782


What are jquery plugins?

822


How to prevent Right Click option using jquery?

829


Which version of jquery file should be used?

906


What are the the two types of cdns?

841


Can there be more than one ready function in jquery?

765


Define .siblings() method in jquery?

808