Check uncheck multiple checkboxes using Javascript

Must Read : Check uncheck multiple checkboxes using Javascript

Here’s a useful Javascript function I recently coded to allow a list of checkboxes in a form to be selected or unselected. The CheckAll function takes in two parameters, the first is the form name and the second is a boolean value – true or false, true being to select all checkboxes and false to un-select all.

Javascript function to handle the main logic

The above code is finish here but this is not the end. Now I show you another way to select group of check boxes

Check uncheck Gmail-like Grouped checkboxes using jQuery

This script will not select all the check boxes using a single but but this will give you a chance to select group of check boxes.

I create the above two application in one page.

(Visited 68 times, 1 visits today)

Leave a Comment.