how to get html parameter from javascript to input value code example
Example 1: Javascript get text input value
var inputValue = document.getElementById("myTextInputID").value;
Example 2: javascript input value change
function updateInput(ish){
document.getElementById("fieldname").value = ish;
}