document.getelement by id take id value code example
Example 1: js get id value
var element = document.getElementById("YourElementId");
var value_element = document.getElementById("YourElementId").value;
Example 2: how to get an element by id in javascript
document.getElementById("IdGoesHere");