H I O X INDIA
FREE Javascript
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
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 language=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



Usage
a)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>

b)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);'>


c)Now just copy the above free javascript code in your web page inside the head tag.





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-2005 HIOX INDIA - hioxindia.com

Others