Checkbox state with javascript
<p>I have list of checkboxes in my jsp page.Based on Main checkbox i have to check/uncheck all child check boxes.</p>

<p>1)Take i have 10 child checkboxes and have  main checkbox.When i check Main checkbox,i able to select all child checkboxes.if user unselect any child checkbox,i able to unselect 
main checkbox.so here out of 10 childcheckboxes,i unselect 1 checkbox ,based on this i unchecked main checkbox.</p>

<p>But here my Question,if user checks that checkbox again,so here my status is selected all 10 checkboxes.So i should even checks the main checkbox too.</p>
