Compare two multi-checkboxes

@russian-dima Thanks so much for the response.
Here is what I have done based on what you provided.

$w.onReady (() => {
let selectedOptionsA = $w("#checkboxGroup1").selectedIndices;
let selectedOptionsB = $w("#checkboxGroup2").selectedIndices;
if (selectedOptionsA.length && selectedOptionsB.length == 6){
       $w("#button1").enable();
 }
 else {
      $w("#button1").disable();
 }
});

However, it is still not working.

Here is what I have as an example. The column with First, Second, Third… is checkboxGroup1, then the column with A, B, C… is checkboxGroup2

What I want is when 6 items all together between both columns are selected then the Add To Cart button will enable.

Like this for example.

I am definitely missing something just not sure what.

Thanks so much for your help so far I definitely did not know about selectedIndices.

Talk soon!