What is the method to assign a variable to access the svg element inside the div with an ID of parent1
using Javascript?
Here is the HTML structure:
<div id="parent1">
<svg.....></svg>
</div>
And this is the Javascript code to assign the variable:
var target = document.getElementById("parent1").svg;