I expected clone(true) to be deep (ala MooTools); that is, clone all
the child elements exactly, down to events and all. It appears this
isn't the case:
Example:
<div id="outside">
<input id=inside">
</div>
<div>
$('inside').bind('focus', function() { alert('You focussed me!') })
//Result: if you focus on the input, you get an alert
$('outside').clone(true).insertAfter($('outside'));
//Result: the outside div is cloned and there now appears two, side by
side
(focus on the second input)
//Expected result: an alert box
//Actual result: nada
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---