1

Now i can print all of the id of nodes using.

var idz = nodes.getIds();
document.getElementById("id").innerHTML = idz;

I want to get the id of node that I am clicking what method that I have to use ?

The document is here.

Raptor
  • 53,206
  • 45
  • 230
  • 366
rosy white
  • 45
  • 1
  • 4

1 Answers1

0

Use this reference.

Get id of current element

var currentElementId = this.id;
Đào Minh Hạt
  • 2,742
  • 16
  • 20