javascript value from input code example
Example 1: set value using javascript
document.getElementById("myText").value = "your string";
Example 2: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 3: get value from textbox in vanilla javascript
document.getElementById("myText").value = "Johnny Bravo";
Example 4: js input value
var x = document.getElementById("myText").value;