You can also get at the DOM element represented by a selection via selection.node() method
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();
You can also get at the DOM element represented by a selection via selection.node() method
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();