I have this tag on a webpage
<input type="hidden" name="ctl00_ed3327f9_e1db_40db_9d66_15946cead7ae_STATEFIELD" id="ctl00_0g_ed3327f9_e1db_40db_9d66_15946cead7ae__STATEFIELD" value="0" />
I want to modify its value, i.e. from value="0" to value="1" using JavaScript. I have tried:
document.getElementById("ctl00_0g_ed3327f9_e1db_40db_9d66_15946cead7ae__STATEFIELD");
but it returns null. I guess that's because it is a hidden field