E
E
Evtera2020-05-06 15:01:02
JavaScript
Evtera, 2020-05-06 15:01:02

How to move an element from one parent to another jQuery?

Hello. There is UL. How to move it to another DIV with all nested elements?

<div>
  <div class="here"></div>
</div>

<div>
  <ul>
    <li></li>
    <li></li>
  </ul>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wyzemind, 2020-05-06
@Evtera

$("ul").appendTo(".here");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question