When the parent checkbox is checked all the child check boxes will be checked.
My problem is how to uncheck child checkboxes when parent is unchecked.
Here is my code
<script>
<!--
function CA#chkTime#(){
for(i=0;i<document.myForm.atype.length;i++)
{
var myList = "#chknow#";
var listArray = myList.split(",");
for(j=0;j<listArray.length;j++){
if(document.myForm.atype.value == listArray[j]){
document.myForm.atype.checked = true;
break;
}
}
}
}
</script>
How to mod it so that clicking the parent box while checked will uncheck all child boxes.
Thanks.
My problem is how to uncheck child checkboxes when parent is unchecked.
Here is my code
<script>
<!--
function CA#chkTime#(){
for(i=0;i<document.myForm.atype.length;i++)
{
var myList = "#chknow#";
var listArray = myList.split(",");
for(j=0;j<listArray.length;j++){
if(document.myForm.atype.value == listArray[j]){
document.myForm.atype.checked = true;
break;
}
}
}
}
</script>
How to mod it so that clicking the parent box while checked will uncheck all child boxes.
Thanks.