I have number of check boxes that gets generated dynamically. So i do not know how many check boxes gets generated each time. I need to have some JavaScript ways to count the total numbers of check boxes in a form.
<input type=checkbox value=username1 name=check[0] id=1 /><br/>
<input type=checkbox value=userusername2 name=check[1] id=1 /><br/>
<input type=checkbox value=userusername3 name=check[2] id=1 /><br/>
I can not change the name of the check boxes as i need to send the values to serverside PHP script as an array.