Is there a difference between these two ways of default checking a checkbox:
document.getElementById(checkboxId).defaultChecked = checked; vs
document.getElementById(checkboxId).checked = checked; The defaultChecked property returns the default value of the checked attribute. This property returns true if the checkbox is checked by default, otherwise it returns false. http://www.w3schools.com/jsref/prop_checkbox_defaultchecked.asp
The checked property sets or returns the checked state of a checkbox. http://www.w3schools.com/jsref/prop_checkbox_checked.asp
defaultChecked can be set (which is what the question is doing).