html get value by id code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 3: get document by id
var element = document.getElementById(id);