$('#germany').vectorMap({ map: 'germany_en', onRegionClick: function(event, code){ alert(code); // any code here } });