javascript set the value of hidden text input feild code example
Example: javascript change hidden input value
document.getElementById("myHiddenInputID").value = "MyNewValue";
document.getElementById("myHiddenInputID").value = "MyNewValue";