Cilpot
Pretentious Schmuck
I have a form consisting of a variable number of checkboxes generated from a php-loop. What I want to do is to count the number of checked checkboxes (and display this number) and de-activate them once a number has been reached.
For example, consider the form as a 'vote' and there are 50 options, but only 10 are allowed to be chosen. When 10 checkboxes has been checked a message will say that no more choices are allwed. And while checking a number is displayed saying how many choises are left.
Help greatly appreciated
For example, consider the form as a 'vote' and there are 50 options, but only 10 are allowed to be chosen. When 10 checkboxes has been checked a message will say that no more choices are allwed. And while checking a number is displayed saying how many choises are left.
Help greatly appreciated