java getelementbyid code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: js get id value
var element = document.getElementById("YourElementId");
var value_element = document.getElementById("YourElementId").value;