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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An element has only one place in the DOM tree so the second
append, in fact, moves the element.You can use this
Or