Append HTML list items to another list using jQuery

In this instance, we have to menu items that we want to merge into one on mobile devices. You have a top menu and main menu item and on mobile, the two are merged into one menu item that you can easily open using a hamburger menu.

This is the jQuery you would write to handle the above and it works even when resizing the browser window:

Code, music, craft beer and traveling to remote areas are the only real languages I speak.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store