yeah append actually moves the element.
you might want call clone() on the existing element then append the new
element created by clone to wherever you want


On Sun, Sep 6, 2009 at 3:40 PM, 月讀 <keyoft...@gmail.com> wrote:

> My English is not weill.
>
> https://developer.mozilla.org/En/DOM/Node.appendChild
>
> If child is a reference to an existing node in the document, appendChildmoves 
> it from its current position to the new position.
>
> jQuery is actually to invoke the orignal DOM method.
>
>
> On Sun, Sep 6, 2009 at 1:41 PM, lovespring <iamd...@gmail.com> wrote:
>
>>
>> when you append by using an existing content, jquery will delete the
>> orignal:
>>
>> $(new).append($('#ori'));
>>
>> then the orignal $('#ori') in the document will be deleted, is this by
>> design?
>
>
>

Reply via email to