set valur input js code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: set value using javascript
document.getElementById("myText").value = "your string";
var inputValue = document.getElementById("myTextInputID").value;
document.getElementById("myText").value = "your string";