Menu
guys,
here is my code. i cannot seem to figure out why i am getting an error thrown in IE.
[CODE]
function validateControl()
{
var counter = 0;
Control oFrm = Page.Form;
//loop through panel controls
foreach (Control oCtl in oFrm.Controls)
{
//find your control and do with it as you like here
if(oCtrl.type==”checkbox”)
{
if(oCtrl.checked)
{
counter++;
}
}
}
if(counter == 0)
{
alert(“Please check a status.”);
}
}