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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -