Javascript – How to append li element, to another list
I have a list that i want to append another list on certain conditions. The structure looks like this: <ul class="menu"> <li class="list-1"><ul class="ul-1"></ul></li> <li class="list-2"><ul class="ul-2"></ul></li> <li class="list-3"><ul class="ul-3"></ul></li> <li class="list-4 empty-list"></li> <li class="list-5"><ul class="ul-5"></ul></li> </ul> I want the…