I reference the hidden field like:
var h = document.getElementById('myHiddenField');
How can I set the value to 100, and then output the value using a simple alert();?
I reference the hidden field like:
var h = document.getElementById('myHiddenField');
How can I set the value to 100, and then output the value using a simple alert();?
The
value
property of the element.Maybe you want to set hidden field's value IN the html part. To do so write: