Copy link to clipboard
Copied
i am making a world map in SVG and i have to make such dialog boxes with some contact info and stuff... the text in the boxes are typography elements and every country has its own dialog box
for instance norway: dialog-no
and they are all grouped
then i go into javascript
and use this code
$("#norway").click(function(){
$("#dialog-no").show();
});
to show the boxes, but when i click inspect it says that the id of the norway country is something with polygon #norway .st7
so i tried type that inside the click function, but still nothing appears! what the heck is wrong here?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Do not use the "Save-As" SVG export, instead use the Web Optimized SVG Export from the Export menu item. The "Save-As" version mangles up a lot of the svg code. Still, check your tag names to verify that your layer names carried over like you expected.