javascript - Clone div to have all event like original div -
i wondering why cloned div not on click. when original div clicked gets active on click, clone of same div not active after drag , drop.
is there way can add click event listeners cloned item same original div.???
javascript:
i want attach event listener div having id "id3" being cloned. thanks
use clone(true)
. 'true'
parameter keeps events attached element being cloned.
Comments
Post a Comment