Navigation Menu

What's New?
Alphabetical Listing
Site Contents


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

This script adds the "check all" function to a form. Short and easy to use.


First
Second
Third
Fourth
Check/Uncheck All

Notes

  • Created by: Hillel Aftel
  • Posted: November 30, 2005

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: checkAllToggle.js


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

8. From: Iona Matheron
08/18/2008 05:00:53

Very useful script and easy to implement, Thanks heaps!

7. From: kassy
so good
05/24/2008 12:37:39

thank.. so much
it's good script
short
and very easy !!

5. From: karthick raja
nice
03/07/2008 00:46:58

it's very fine,
it's easy understand
yeh!!! really .......it's working

4. From: Amit
Very good
12/28/2007 00:10:40

I use this script, and really easy to understand and integrate .

Thanks a lot

1. From: Marcus
12/27/2007 20:17:01

Hi, great script (super short) BUT IT DOESN'T WORK if you only have 1 checkbox in the list.

6. From: Marcu
04/21/2008 18:26:40

Marcus,
All you need to do to counter this problem is add the following line of code inside the <form></form> tags:

<input name="checkGroup" type="hidden" value="">

2. From: Lee Underwood (Admin)
01/29/2008 12:16:00

Well, the script really has no purpose in that type of set-up.

3. From: Kris Secor
Problem with toggle...
12/15/2007 21:40:23

The script is fine, but isn't useful as it limits the ability to pass an array of values to a server sided script...


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.