function Val() { var Ctrl; row = document.forms[0].row.value col = document.forms[0].col.value for(i=1;i<=row;i++) { for(j=1;j<=col;j++) { Ctrl = "Row"+i+"Col"+j if(document.getElementById(Ctrl).checked ==true)''Microsoft JScript runtime error: Object required { document.getElementById(Ctrl).value ="Y" } else { document.getElementById(Ctrl).value ="N" } } }
<input type="checkbox" name="<%="Row"&row & "Col"&col%>"
"Microsoft JScript runtime error: Object required"
<%-- <script language="javascript" type="text/javascript" > function checkCheckBoxes() { if (document.newmember.CheckBox1.checked == false) { alert ('Please Agree Terms & Condition First!'); return false; } else { return true; } } </script>
document.forms[0].elements[i].checked==true
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)