检查checkbox是否被选中

 function CheckBoxChange()
{
var r1 = document.all.grdTest_selectedRowIndex.value;
var x = parseInt(r1)+1;

if(document.getElementById("grdTest__ctl"+ x+"_chkMC").checked)
 { 
alert("checkbox is checked"+x);
return false;
 }
}
原文地址:https://www.cnblogs.com/nuaaydh/p/4325234.html