0

I would like to get the id of a selected element within my svg-canvas as a variable to use it within a function. I would take it that var selected = svgCanvas.getSelectedElems; doesn't pass a particular id. Any ideas?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
nicholaswmin
  • 21,686
  • 15
  • 91
  • 167

1 Answers1

1

You can make direct use of selectedElement.id

var elementSel = selectedElement.id;

GuaroSoft
  • 26
  • 1