D3.on Accessing Attributes

Is it possible to access the attributes of an element selected in the callback function of the on() Event Listener?

That sounds very possible