Re: [jquery-dev] .appendTo() behaviour

2009-12-12 Thread John Resig
When appending element A to set B the element is moved over in the DOM into the first element in B. All subsequent elements are cloned (therefore it's not left in position). Also, there's no need to do what you outlined, just do: $(div/).append( $(#old_parent).children() ); --John On Sat, Dec

Re: [jquery-dev] .appendTo() behaviour

2009-12-12 Thread Raul Dias
Hi John, Indeed that works. I found out what can be a bug in jQuery 1.3.2. When moving with .append() in Firefox 3.5.5, Opera (9 and 10) and Konqueror 4.3 (tested on both linux and Windows) I get a blank screen if there is a youtube video embedded inside somewhere. Took a while to dig this.