I am simply trying to append an a-tag into a li, but for some reason I cannot see why this doesn't work.
navListItem = '<li class="p-list-item"></li>';
mainLink = '<a class="main-a" href="' + item.link + '"><span>"' + item.title + '"</span></a>';
$(navListItem).append(mainLink);