判断复选框是否被选中
来源:互联网 发布:centos ping不通网关 编辑:程序博客网 时间:2024/04/29 15:19
function checkValue() { var input_list = document.getElementsByTagName("input"); for (i=0; i< input_list.length; i ++) { thisInput = input_list[i]; if(thisInput.type.toLowerCase()=="checkbox"){ if(getCheckedValue(document.getElementsByName(thisInput.name)) == ""){ thisInput.focus(); window.scrollBy(0, -30); alert("该项不能为空!"); return false; } } } return true;}
function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++ ) { if(radioObj[i].checked){ return radioObj[i].value; } } return "";}
- 判断复选框是否被选中
- jquery判断复选框是否被选中
- Jquery 判断复选框是否被选中
- JavaScript判断复选框是否被选中
- jq判断复选框是否被选中
- 怎样判断复选框是否被选中
- 判断复选框是否被选中
- jquery判断复选框是否被选中
- 判断复选框是否被选中
- 复选框 是否被选中的判断
- 判断复选框是否选中
- MFC 复选框选中和是否被选中判断
- jquery复选框 选中事件 及其判断是否被选中
- jquery复选框 选中事件 及其判断是否被选中
- jquery复选框 选中事件 及其判断是否被选中
- 用JS能不能判断复选框是否被选中
- jquery判断单个复选框是否被选中
- jquery如何判断checkbox(复选框)是否被选中
- Key Event
- 上传图片测试
- 实现PDF文件在网页中无法保存打印
- VBA:今天早上写的一个简单窗体,删除关系表中的旧数据
- 贾庆林:吴伯雄来访意义重大
- 判断复选框是否被选中
- 编译程序中出现“fatal error C1010: unexpected end of file”
- pe文件格式
- JSP向MySql插入汉字时,数据库中显示为null
- static_cast一点小知识
- 5.28 new
- 用ADS(AXD Debugger),实现u-boot的源代码级调试(c语言级)
- ASP.NET中常用的三十三种代码
- ILMerge的使用