Appending a DOM element twice (jQuery)
Can someone explain why the following snippet does not add <foo> to both #a and #b ? HTML: <div id="a"></div> <div id="b"></div> JS: $(function(){ var $foo = $("<foo>HI</foo>"); $("#a").append($foo); $("#b").append($foo); }); jsfiddle Edit: thanks for the helpful points, the fact that .append() moves the element explains this behavior. Since the element in my application is actually a Backbone View's .el , I prefer not to clone it. Because using append actually moves the element. So your code was moving $foo into the document at #a , then moving it from #a to #b . You could clone it instead