how to get value of input box in javascript code example
Example 1: set value using javascript
document.getElementById("myText").value = "your string";
Example 2: get value from textbox in vanilla javascript
document.getElementById("myText").value = "Johnny Bravo";