javascript read hidden field value code example
Example 1: javascript change hidden input value
document.getElementById("myHiddenInputID").value = "MyNewValue";
Example 2: get hidden field value in javascript
// HTML :
<input type=hidden id="abcId" name="abcName" value="Wall Street! Money Never Sleep"/>
// JAVASCRIPT :
alert(document.getElementById('abcId').value);
alert(document.formName.elements['abcName'].value);