How to check/uncheck all checkbox with Jquery

There are a lot of solutions for this, but I found most them did not handle the case where user checked or unchecked all of the child checkboxes and it must automatically checked or unchecked the parent checkbox. so I give the following solution:

.cbRowItem {display:block;}
This article is part of the GWB Archives. Original Author: hmloo

New on Geeks with Blogs