Ich habe eine HTML-Struktur wie dieseElement einfügen als Geschwister mit D3js
<div>
<div><span id="span1">Test 1</span></div>
<div><span id="span2">Test 2</span></div>
<div><span id="span3">Test 3</span></div>
<div><span id="span4">Test 4</span></div>
</div>
Ich habe ein svg Element einzufügen, mit jQuery ich leicht tun können, wie
for(var i in arr)
$('.span' + i).parent().append('<svg />')
Wie kann ich acheive das gleiche mit D3.js? als d 3.select('.span' + i).parent
ist Fehler parent is not a function