get value from input field code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: get value from textbox in vanilla javascript
document.getElementById("myText").value = "Johnny Bravo";
Example 3: get value from input field
<h1>Hi Hello</h1>
Example 4: get value from input field
<h1>Hi Hello</h1>