In order to have checkboxes generated dynamically for a pop-up window utilizing AJAX, I am using Javascript. Furthermore, when a button is clicked, a function needs to be executed that checks all the checkboxes before the pop-up appears.
The web pages being used are built with JSP and the pop-up is added using the tag, thus it is already created at the time the main page loads.
An issue arises with IE6, as although the same function successfully checks all custom-generated checkboxes for IE7 and IE8, it fails in IE6.
Here is the code snippet I am currently employing:
var i;
for (i = 0; i < size; i++) {
document.getElementById('chk' + i).checked = true;
}