I assume you didn't mean to do $('inside') and meant to do $("#inside").
Could you make a working test case? This has worked for us, in all our
tests, so I'm not sure what the exact issue is here.
--John
On Wed, Sep 3, 2008 at 9:27 AM, Alex Howell <[EMAIL PROTECTED]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---