1
I need help to make a small script that blocks the button, if you have input's
with the nomes
different selected, and allowing if they are equal, both cases with the same class, and also showing the status of 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>
Explain this better my young man, put examples to make it clearer. What you call status?
– Sam
Type, if two equal name input (Ex: x & x) are selected the ok button is visible, if different name (Ex: x & y) is selected the button is hidden or locked.
– João Victor
You wear jQuery or not?
– Sam
The library is available in my small project
– João Victor
If you select only one, it is to show the button or you have to select the pair?
– Sam
You have to select one by Meno to show
– João Victor