JavaScript Scripts

Español Français 中文 Deutsch Portuguese Japanese nederlands
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Dynamic Color Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators

Select or Unselect all Checkbox

You can use this free javascript code to Select / Unselect all the checkboxes by selecting a single check box.

a)There can be any number of checkboxes for selection.
b)All the checkboxes can be selected just by selecting one check box in common.
c)Also the same can be used to check and uncheck all in a single click.

Select or Unselect all Checkboxes:

Check or Uncheck the checkbox placed below.

<!--        Script by          -->
<!--        copyright of HIOX INDIA         -->
<!-- Free javascripts @ -->
<script type="text/javascript">
function checkedAll (frm1) {
	var aa= document.getElementById('frm1');
	 if (checked == false)
           checked = true
          checked = false
	for (var i =0; i < aa.elements.length; i++) 
	 aa.elements[i].checked = checked;
<!-- Script by -->

Release Date - 20.06.2007
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at

a) Now just copy the above free JavaScript code in your web page inside the head tag.
b) Create any number of check boxes and place in a form and name that form as "frm1"
<form id ="frm1">
<input type="checkbox" name="chk1">
<input type="checkbox" name="chk2">
c) Create a common checkbox in the form and name its as "checkall". Now Call the function checkedAll(frm1) by using onclick event.
<input type='checkbox' name='checkall' onclick='checkedAll(frm1);'>

- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting