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.
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.
Use this
reference.
Get id of current element
var currentElementId = this.id;