| 1. |
Will Events Are Also Copied On Clone In Jquery? |
|
Answer» By Default “clone” method does not clone the EVENTS unless it is being INSTRUCTED to copy. When “clone” method is being instructed to clone the events also then along with elements, events are also being COPIED. “Clone”method takes a Boolean PARAMETER, PASS true in clone method to copy the events like below - $('#mycontrolid').clone(true).appendTo('body'); By Default “clone” method does not clone the events unless it is being instructed to copy. When “clone” method is being instructed to clone the events also then along with elements, events are also being copied. “Clone”method takes a Boolean parameter, pass true in clone method to copy the events like below - $('#mycontrolid').clone(true).appendTo('body'); |
|