onChange input access the value code example
Example: javascript input value change
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}