Html – Why does the click event work the first time, but subsequent clicks only affect in last DOM node?
issue I encountered an issue while using D3.js. I have two functions, unexpectedCode and expectedCode, which are supposed to draw some circles in an SVG and change their color when clicked. The click event in expectedCode works fine, but in…