I have a form which has a series of checkboxes in two groups. Each checkbox represents an item being purchased. I have a total box which I need to dynamically update based on the formula 5 x the number of checkboxes ticked.
So as the checkboxes are ticked and unticked I need the total field updating.
I need the coding written so it will cope if I add or remove checkboxes.
So the logic for the code is
Add any events to the checkboxes.
On change on any checkbox
Count the checked checkboxes. multiple this number by 5 and update a text field with this value.
Nice and simple.