Platinum Partner

Verify That Atleast One Check Box Checked In The Grid

// verify that  atleast  one check box checked in the grid



function CheckAtleastOneisChecked(checkBox) {                     var frm = document.forms[0];                     var flag = false;                     var cnt = 0;                     for (var i = 0; i < document.forms[0].length; i++) {                         if (document.forms[0].elements[i].id.indexOf(checkBox) != -1) {                             if (document.forms[0].elements[i].checked) {                                 flag = true                                 cnt = cnt + 1;                             }                         }                     }                     if (flag == false) {                         alert('Atleast one check box should be  checked.')                         return false                     }

}

{{ 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}}