I want to select text
tag. I have tried different methods. This is a part of a bigger problem. I want to select the text tag and append it. Normally it works but I never worked with SVG
<div id="chart_div">
<div>
<div>
<svg width="800" height="600">
<defs></defs>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g>
<text></text>
</g>
</div>
</div>
</div>