Definir valor JavaScript por id
document.getElementById("ID").value = "TEXT OR VARIABLE";
Satriags
document.getElementById("ID").value = "TEXT OR VARIABLE";