Move dynamically created SVG with mouse
问题 I'm pretty new to HTML and JS, but I'm trying to learn some of the basics. Now I'm experimenting with graphics. I'm trying to create two svg elements dynamically with JS and then move them individually with the mouse. I'm able to create them, and register the mouse events on them individually, but can't get them to move. To try to move there positions, in my dragging() function I assign the svg style.top and style.left to the value of the pointer. I can confirm in the JS console that the