Multiple Select Dropdowns Not Working Correctly

You can use Javascript’s includes method (documentation).

if (a.value.includes('Apple') && a.value.includes('Apricot')) {
  c.options = ['Carrot', 'Cashew', 'Cherry', 'Cantaloupe']
}

Is this post also asking about the same thing? Thank you.