Platinum Partner

Javascript Tp Check/uncheck The Header Check Box On Chile Check Boxes Check/uncheck

// Javascript tp check/uncheck the header check box on chile check boxes check/uncheck



function CheckChanged(headerCheckBox, childCheckBox) {
    var frm = document.forms[0];
    var allChildChecked;
    allChildChecked= true;
    for (i = 0; i < frm.length; i++) {
        e = frm.elements[i];
        if (e.type == 'checkbox' && e.name.indexOf(childCheckBox) != -1) {
 
            if (e.checked == false) {
                allChildChecked= false;
                break;
            }
        }
    }
    for (i = 0; i < frm.length; i++) {
        e = frm.elements[i];
        if (e.type == 'checkbox' && e.name.indexOf(headerCheckBox) != -1) {
            if (boolAllChecked == false)
                e.checked = false;
            else
                e.checked = true;
            break;
        }
    }
}

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}