js遍历GridView里的input:
Code
function onClientClick()
{
var inputs = document.getElementById("<%=GridView1.ClientID%
>").getElementsByTagName("input");
for(var i=0; i <inputs.length; i++)
{
if(inputs[i].type=="checkbox" && inputs[i].checked==true)
{
inputs[i].value //这是CheckBox的value值,根据你的情况进行验证
//.
}
}
}
参照:http://www.cnblogs.com/chenou/articles/1116086.html