How do I return a specific attribute of a variable using d3?
For example, I want to select an element by mouseover, and pass on the selection to a function, but only if
Yes. Select this and then use the usual functions to access properties.
this