How can I copy an element to another element along with the event handlers attached.
Normally when we copy one element to another then event handlers are not copied.
How to do this ?
How can I copy an element to another element along with the event handlers
Share
Try to use clone function with true as parameter.
For more details read its API at http://api.jquery.com/clone/
Check this out :-
http://jsfiddle.net/blunderboy/cRax2/5/