H I O X INDIA
FREE Javascript
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch Portuguese Japanese தமிழ்
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Ad Display
Animated Image Effects
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Formatting Forms
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Pagination
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





Select or Unselect all Checkbox


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


Features
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.

Preview
Select or Unselect all Checkboxes:

Check or Uncheck the checkbox placed below.


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

Release Date - 20.06.2007

Get free version without ©copyright link for just 5

For customization of this script or any script development, contact us at support@hscripts.com



Usage
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"
Ex:-
<form id ="frm1">
<input type="checkbox" name="chk1">
<input type="checkbox" name="chk2">
</form>
c) Create a common checkbox in the form and name its as "checkall". Now Call the function checkedAll(frm1) by using onclick event.
Ex-
<input type='checkbox' name='checkall' onclick='checkedAll(frm1);'>


License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2010 HIOX INDIA

Others