Showing posts with label toggle all. Show all posts
Showing posts with label toggle all. Show all posts

Wednesday, 30 May 2012

JavaScript: select all checkboxes in a form

   


A common feature in many web site is the possibility of checking a series of checkboxes in just one go. For example, when managing emails in a web site, we can allow the user to select a bunch of messages and move them all together.
How can we create such a toggle all button?
We are going to use a simple JavaScript function. Follow me and see how...