I need help to make a small script that blocks the button, if it has input's
with the nomes
different selected, and that allows if they are equal, both cases with the same class, and also that shows the status which groups are selected.
<div id="lista">
<!-- grupo x-->
<input name="x" class="caixa" type="checkbox"> X</br>
<input name="x" class="caixa" type="checkbox"> X</br>
<!-- grupo x-->
<input name="y" class="caixa" type="checkbox"> Y</br>
<input name="y" class="caixa" type="checkbox"> Y</br>
<!-- grupo z-->
<input name="z" class="caixa" type="checkbox"> Z</br>
<input name="z" class="caixa" type="checkbox"> Z</br>
</div>
<div id="status"></div>
<button id="ok">Ok</button>