Draggable SVG elements?

Id like to create drag gable SVG elements like

I’k trying to put the new (x/y) coordinates of the dragged element into a text field, How do I place the new x & y values into a javascript variable so I can do that?

I started some,
I tried to put a variable in the drag() to be put in the console to see if its even working
but I dont see anything when I look in the console, the the function not even being run when I try to drag the white box?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.