JavaScript validation to control a constant sum question and check boxes

I have a constant sum question which contains 7 elements - Q22.

On the same page I have 2 check boxes - Q22x_1 (Not sure) and Q22x_2 (Not applicable).

The respondent can either answer the constant sum question or select one of the check boxes, but not both the constant sum and a check box.

I have some working JavaScript that I feel is inefficient and was hoping to gain a more updated approach.

Regards.

Resolved
4 replies