how to add value to input javascript code example
Example 1: set value using javascript
document.getElementById("myText").value = "your string";
Example 2: javascript add value to input
document.getElementById("myText").value = "Johnny Bravo";
document.getElementById("myText").value = "your string";
document.getElementById("myText").value = "Johnny Bravo";