If cloning does not copy the associated data objects, how can you do a complete copy all associated data objects to the cloned element?
On Mar 1, 2:05 pm, sliver <sliver2...@gmail.com> wrote: > When cloning and element, you can pass a boolean value of true to copy > event handlers... what about the data object from jQuery? > > console.log($('<div/>').data('foo', 'bar').clone(true).data('foo')); -- > > > undefined