I have 2 chekboxes per page. Each of them is placed in a table cell in each row. Executing document.getElementById ('chk1_FEAS ~ 1005') returns the element, and document.getElementById ('chk5_STG2 ~ 1005') is NULL. For what reasons can this happen? (I am testing in IE 8).
<input id="chk1_FEAS~1005" value="JobStages###StageCode~JobCode###FEAS~1005" onclick="addRemoveRow(this.value,this.checked)" style="border-width:0px;padding:1px;margin:0px;height:14px;" type="checkbox" />
<input id="chk5_STG2~1005" value="JobStages###StageCode~JobCode###STG2~1005" onclick="addRemoveRow(this.value,this.checked)" style="border-width:0px;padding:1px;margin:0px;height:14px;" type="checkbox" />
source
share