score:10

Accepted answer

You need a child selector here (and call the .text() function):

d3.select("g.tooltip > text.name").text();

Related Query