I am trying to get links from the menu and display them in a block with the html-map class, but the links are not displayed, how can I fix it?
$(document).ready(function(){ var html_link = []; if(location.pathname == '/html-karta'){ $.each($("ul.menu-main a"), function(i,e) { html_link.push($(e).attr('href')); $.each(html_link, function(i,e){ $('.html-map').html($(e)); }) }) } })