I have a form with multiple checkboxes and I want to use JavaScript to make sure at least one is checked. This is what I have right now but no matter what is chosen an alert
Check this.
You can't access form inputs via their name. Use document.getElements methods instead.
document.getElements