check all checkbox using jquery

In this post, you will learn how to check all checkboxes by clicking one check box. This would be very important when dealing with large number of data, and apply you action on all the data. Also you would be able to get the list of checked data with comma(,) saperated values.

You need to add the latest Jquery file (jquery.min.js) which is needed to run Jquery script.
This script contains two parts one is HTML and other is Jquery.
Here is the HTML used in this script:

Now the main code, i,e. Jquery:

You can see the working demonstration of this by clicking here:
DEMO