dimanche 5 novembre 2017

summing checkboxes with java

This code is going to be an amatour test.

<input type="checkbox" name="Ti" value="working">working</p>
<input type="checkbox" name="Ti" value="analyzing">analyzing</p>
<input type="checkbox" name="Fi" value="crying">crying</p>

I need this HTML to work with java. If it's all checked it should count/sum/calculate names in this way:

name+x amount of checked boxes

Ti 2

Fi 1

Also if you could put a button with "Calculate" at the end so results won't show just right after clicking checkboxes (results should be showed after clicking the button). Sorry but I can't find a way to do such simple thing and I was never learning java.




Aucun commentaire:

Enregistrer un commentaire