javascript - Is there a way to go within the tag of an svg tag? -
i have following object returning me these tags this call.

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
Post a Comment