d3 select class and after element code example
Example: html tag convert to d3.select() point
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();