Trying to save the disabled property value of a hidden field in order to track the disabled state of a button between postbacks, using the following JavaScript
function TrackState(buttonID)
{
var trackingField = document.getElementById("_tracking" + buttonID);
return false; // prevent default action
}
In the HTML
<input type="hidden" name="_trackingButton1" value="true" />
However, every time trackingField appears to be null. What could be going wrong here?