How to address "check all" in multirow form

Created checkbox “ZERO.” When clicked, it zeros out the field “REQUIRED” via an ajax ON CLICK. I have mark every column selected. When I click MARK EVERY COLUMN, it selects every ZERO checkbox, but does not affect the REQUIRED column. I put an ON CHANGE event on ZERO, but that does not respond to the MARK EVERY COLUMN even though the value is clearly changed. Is there a way to address the mark every column checkbox so I can somewhere say if this is checked zero out every REQUIRED column?