javascript input hidden value object code example
Example 1: 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);
Example 2: javascript change hidden input value
document.getElementById("myHiddenInputID").value = "MyNewValue";