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

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -