-2
I have the following codes: the first checkbox is equivalent to the additional ones that are worth 2 real and the second to those that are worth 4 real.
Additional 2 reais:
<input type="checkbox" />Morango
<input type="checkbox" />Ninho
<input type="checkbox" />Uva
Additional 4 reais:
<input type="checkbox" />Nutella
<input type="checkbox" />Bis
<input type="checkbox" />Kit Kat
Through javascript, how can I count how many checkboxes were selected in the extra 2 real and count how many were selected in the additional 4 real and add the results of the two counts?
Note: It will not be necessary to codar for me, just say what I can do, but if you want, feel free...
+1 "... and sum up the results of the two counts?" I think I missed the total count of the real ones
– Cmte Cardeal
truth @Cmtecardeal, added the general sum :)
– Ricardo Pontual
THANK YOU!!!! You helped me and taught me a simple way to do it. Thank you!
– Vieira Braz
@Vieirabraz don’t forget to accept the answer if it helped you :)
– Ricardo Pontual
I’m new on this site, I don’t know how to do this... I’ll be trying and looking
– Vieira Braz