如何遍历javascript中的所有复选框 [英] how to iterate through all the check boxes in javascript
本文介绍了如何遍历javascript中的所有复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我想迭代所有复选框并检查状态是否已选中。
我的控件位于内容占位符上,所有页面都在母版页中。
I ''我无法做到'for(i = 0; document.FormName.Elements .....
请建议我替代品。
谢谢和问候
Sri
Hi
I want to iterate all the check boxes and check the status whether it is checked or not.
My controls are on a content place holder and all the pages are in master pages.
I''m unable to do with "for(i=0;document.FormName.Elements....."
Please suggest me alternatives.
Thanks & Regards
Sri
推荐答案
你甚至懒得尝试谷歌搜索?
在不到10秒的时间内找到这个:会让你开始:
如何循环通过JavaScript复选框或单选按钮组 [ ^ ]。
Did you even bother to try Googling?
Found this in less than 10 seconds: will get you started:
How to loop through checkboxes or radio button groups via JavaScript[^].
这篇关于如何遍历javascript中的所有复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文