I have two inputs in each group with name
equal, where each has values
different, integer and half
Using if
and else
or otherwise, I would like to count the inputs that will be checked
.
- When I speak of
if
andelse
I imagine it would be a way of "If the button is checked add ++; otherwise - subtract;
As my knowledge is very shallow, I would love to comment on the logic of such a function.
I let you see more or less the idea. I commented the last else
in the javascript because this is already running a lot.
Example of situation would be as follows,
- The program started
- Check the 1st input of
grupo[0]
. - See the result - 1 and 0 will appear.
- Select 2nd% with% - 0 and 1 will appear.
- When I started to choose
grupo[0]
, it was to be 1 and 0 again, but then the first mismatch happens - Showing 1 and 1. - And so on, go along with the choices of the other inputs.