javascript - Is there a way to go within the tag of an svg tag? -


i have following object returning me these tags this call.

my image

however, i'm trying access properties of <rect> tag. knowing jquery can't transverse svg tags, there way me call inner rect tag?

try

console.dir(document.queryselector('svg').firstelementchild); 

you can navigate through svg tag subtree using regular dom node methods


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -