JSFiddle - React, Tailwind, and code Playground

HTML

<ul class="list">
    List One
    <li id="1" class ="1">1</li>
    <li id="1" class ="1">2</li>
    <li id="1" class ="1">3</li>
    <li id="1" class ="1">4</li>
</ul>
<ul class="answer">
    List Two
</ul>

JavaScript

/*
Using .find() in combination with a single id selector returns only the first element
*/

var all = $(".list").find('#1');


$(".answer").append(all);