Modify tag value using JavaScript
<p>I have this tag on a webpage </p>

<pre><code>&lt;input type="hidden" name="ctl00_ed3327f9_e1db_40db_9d66_15946cead7ae_STATEFIELD" id="ctl00_0g_ed3327f9_e1db_40db_9d66_15946cead7ae__STATEFIELD" value="0" /&gt;
</code></pre>

<p>I want to modify its value, i.e. from <code>value="0"</code> to <code>value="1"</code> using JavaScript. I have tried:</p>

<pre><code>document.getElementById("ctl00_0g_ed3327f9_e1db_40db_9d66_15946cead7ae__STATEFIELD"); 
</code></pre>

<p>but it returns <code>null</code>. I guess that's because it is a hidden field </p>
