JavaScript obtenga un valor de entrada de texto
var inputValue = document.getElementById("myTextInputID").value;
Grepper
var inputValue = document.getElementById("myTextInputID").value;
document.getElementById("ID").value = "Tamer Jarrar";
<input type="text" value="" onchange="updateInput(this.value)" />
<script>
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}
</script>
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}