change value input dom code example
Example 1: javascript change input value
document.getElementById("ID").value = "Tamer Jarrar";
Example 2: javascript input value change
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}