The technically correct value for a checked checkbox is zero (0), and when the checkbox is not checked, it's index is not defined.
↧
Answer by Hamilton Lumati for What's the proper value for a checked attribute of an HTML checkbox?
↧