Syntax for JS to select all checkboxes

Change the select all checkbox from onClick to onChange and see if that works.

The .checked will be true or false. It’s a property of the element.