get values using Id in HTML code example
Example 1: Finding HTML Element by Id
var myElement = document.getElementById("intro");
Example 2: get value from textbox in vanilla javascript
document.getElementById("myText").value = "Johnny Bravo";
var myElement = document.getElementById("intro");
document.getElementById("myText").value = "Johnny Bravo";