how to gewt an id out of anelement in javascript code example
Example: get id of element javascript
var element = document.getElementsByTagName("div")[0];
var id = element.id;
var element = document.getElementsByTagName("div")[0];
var id = element.id;