trettr wrote:
[color=blue]
> It's possible to count the checked checkboxes in a form ?
>
> If so, how?[/color]
var formControls = document.formNa me.elements;
var c = 0;
for (var i = 0; i < formControls.le ngth; i++)
if (formControls[i].type.toLowerCa se() == 'checkbox'
&& formControls[i].checked)
c++;
alert(c)
Comment