Check if each() index 1 et index 2 has .prop( 'checked' )
Solution 1:
You don't want to use each
for this. Just check the values with simple indexing:
if ($checkboxItems[0].checked && $checkboxItems[1].checked)
You don't want to use each
for this. Just check the values with simple indexing:
if ($checkboxItems[0].checked && $checkboxItems[1].checked)