I'm trying to change fill color on my SVG file. But no one from methods is working. I was trying a lot of, but I can't even get object which I want to.
<object type="image/svg+xml" data="map.svg" height="500" id="world_map">
Your browser does not support SVG.
<script src="draw.js"></script>
</object>
This is my SVG declaration and script src.
And script is
var x = $('#world_map#path1622');
console.log(x);
But it is not working. It isn't even return the good element. I've tried code with it but it's not working too.