<SCRIPT LANGUAGE="JavaScript">
<!--
// This script checks and unchecks boxes on a form
// Checks and unchecks unlimited number in the group
// Pass the Checkbox group name
// call buttons as so:
// <input type=button name="CheckAll" value="Check All"
//onClick="checkAll(this)">
// <input type=button name="UnCheckAll" value="Uncheck All"
//onClick="uncheckAll(this)">
// -->
<!-- Begin
function checkAll(theElement) {
var theForm = theElement.form, z = 0;
for(z=0; z<theForm.length;z++){
if(theForm[z].type == 'checkbox'){
theForm[z].checked = true;
}
}
}
function uncheckAll(theElement) {
var theForm = theElement.form, z = 0;
for(z=0; z<theForm.length;z++){
if(theForm[z].type == 'checkbox'){
theForm[z].checked = false;
}
}
}
// End -->
</script>
Your Favorite Scripts & Languages<!--
// This script checks and unchecks boxes on a form
// Checks and unchecks unlimited number in the group
// Pass the Checkbox group name
// call buttons as so:
// <input type=button name="CheckAll" value="Check All"
//onClick="checkAll(this)">
// <input type=button name="UnCheckAll" value="Uncheck All"
//onClick="uncheckAll(this)">
// -->
<!-- Begin
function checkAll(theElement) {
var theForm = theElement.form, z = 0;
for(z=0; z<theForm.length;z++){
if(theForm[z].type == 'checkbox'){
theForm[z].checked = true;
}
}
}
function uncheckAll(theElement) {
var theForm = theElement.form, z = 0;
for(z=0; z<theForm.length;z++){
if(theForm[z].type == 'checkbox'){
theForm[z].checked = false;
}
}
}
// End -->
</script>
Java
Javascript
Active Server Pages
HTML
SQL
Javascript
Active Server Pages
HTML
SQL