javascript - SVG vector changing fill not working -
i'm trying change fill color on svg file. no 1 methods working. trying lot of, can't object want to.
<object type="image/svg+xml" data="map.svg" height="500" id="world_map"> browser not support svg. <script src="draw.js"></script> </object>
this svg declaration , script src.
and script
var x = $('#world_map#path1622'); console.log(x);
but not working. isn't return element. i've tried code it's not working too.
i think have tip. svg file -object -#document -svg
and have to code like
var content = $("").contents();
i have make access document,object or svg?
Comments
Post a Comment