javascript set input value code example
Example 1: javascript set input field value
document.getElementById("myInputID").value = "My Value"; //set value on myInputID
Example 2: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 3: set value using javascript
document.getElementById("myText").value = "your string";
Example 4: javascript change input value
document.getElementById("ID").value = "Tamer Jarrar";