jquery use two .append() doesn't work

append, jquery

Solution

An element has only one place in the DOM tree so the second `append`, in fact, moves the element.

You can use this

$("#place_1").append($(new_line_html));
$("#place_2").append($(new_line_html));

Or

$("#place_1").append(new_line);
$("#place_2").append($(new_line).clone());

Problem

i'm trying to use jquery to append an element to two places, but only the one comes last works(i.e place_2), while the first place doesn't get append. code: ``` $("#place_1").append(new_line); $("#place_2").append(new_line); ``` anyone could help?

Original source