how to set value to a hidden field in javascript code example
Example: javascript change hidden input value
document.getElementById("myHiddenInputID").value = "MyNewValue";
document.getElementById("myHiddenInputID").value = "MyNewValue";