input values in javascript code example
Example 1: set value using javascript
document.getElementById("myText").value = "your string";
Example 2: js input value
var x = document.getElementById("myText").value;
document.getElementById("myText").value = "your string";
var x = document.getElementById("myText").value;