add value to input js code example
Example: javascript set input field value
document.getElementById("myInputID").value = "My Value"; //set value on myInputID
document.getElementById("myInputID").value = "My Value"; //set value on myInputID