Given the following markup:
<a href="#" class="foo" style="display: block">Bar</a>
When I click Bar on the page, I'm expecting this code:
d3.select(".foo").on("click", () => {
console.log(this.style.display);
);
to give the output: block.
However, I get:
Uncaught TypeError: Cannot read property 'display' of undefined
Thanks.