Because I always forget how to create checkboxes dynamically in JavaScript so Internet Expoler will be happy:
var i = document.createElement("input");
i.type = "checkbox";
i.className = "CheckBox";
i.id = "uniqueID";
// this is what I forget - Firefox allows .checked, IE must have .defaultChecked
i.defaultChecked = [true/false];
// always use labels
var l = document.createElement("label");
// ALWAYS use for attributes on your labels. FF allows .for, IE must have .htmlFor
l.htmlFor = "uniqueID";
l.appendChild(document.createTextNode("checkbox label"));
Dear Sherzy,
How do you actually make the checkboxes appear after the code above described.
Neat coding!
Ivan.