how to get id value in javascript code example
Example 1: value from getelementbyid
document.getElementById('numbers').value
Example 2: js get id value
var element = document.getElementById("YourElementId");
var value_element = document.getElementById("YourElementId").value;
Example 3: Finding HTML Element by Id
var myElement = document.getElementById("intro");
Example 4: get id of element javascript
var element = document.getElementsByTagName("div")[0];
var id = element.id;