js遍历GridView里的input:

 

 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

相关文章:

  • 2021-09-07
  • 2021-10-19
  • 2021-10-19
  • 2021-12-30
猜你喜欢
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案