function FunValidation() { TxtName = document.getElementById('<%= TxtName.ClientID %>'); ChkBranch = document.getElementById('<%= ChkBranch.ClientID %>'); var HdnMode = document.getElementById('<%= HdnMode.ClientID %>'); var rows = ChkBranch.getElementsByTagName('input'); var Firstid = rows[0].id; var Intcount = 0; var IntCheckBranch = 0; if (HdnMode.value != 'D') { for (var i = 0; i < rows.length; i++) { var id = rows[i].id; if (document.getElementById(id).checked == true) { Intcount = 1 } if (HdnMode.value == "N") { DDLBranch = document.getElementById('<%= DDLBranch.ClientID %>'); if (document.getElementById(id).checked == true) { if (document.getElementById(id).value == DDLBranch.value) { IntCheckBranch = 1 } } } } }
document.getElementById(id).value
<asp:CheckBoxList ID="ChkBranch" runat="server" AutoPostBack="True" DataTextField="Name" DataValueField="id" meta:resourcekey="ChkBranchResource1" Style="margin: 15px;" OnSelectedIndexChanged="ChkBranch_SelectedIndexChanged"> </asp:CheckBoxList>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)