js中循环遍历
来源:互联网 发布:国家旅游局数据统计 编辑:程序博客网 时间:2024/06/05 03:16
循环遍历name相同的textarea 校验是否有值
<c:forEach items="${contractGenerationList}" var="contractGeneration" varStatus="st">
<tr>
<c:if test="${textFlag==1}">
<td name="recordingPrintTd">
<textarea name="recordingPrint" style="width:90%" rows="4" cols="10"
style="font-size:px" onblur="checkData1(this);"></textarea><span class="r_star" id="textSpanId"></span>
</td>
</c:if>
</tr>
</c:forEach>
$("textarea[name='recordingPrint']").each(function(){
if(this.value == null || this.value =='' ){
this.nextSibling.innerHTML="请填写补打原因!";
return false;
}else{
this.nextSibling.innerHTML = "";
}
});
循环遍历name相同的Input 'text'校验是否有值
$("input[type='text'][name='printNum']").each(function(){
if(this.value.isInt() == false){
this.nextSibling.nextSibling.innerHTML = "请填写整数!";
this.focus();
return false;
}else{
this.nextSibling.nextSibling.innerHTML = "";
}
});
循环遍历checkbox 全选
$("#checkAll").click(function() {
if ($(this).attr("checked") == true) {
$("input[type='checkbox']").each(function() {
$(this).attr("checked", true);
});
} else {
$("input[type='checkbox']").each(function() {
$(this).attr("checked", false);
});
}
});
- js中循环遍历
- 在js中循环遍历json对象
- js 数组循环遍历
- js循环遍历
- js的循环遍历
- handlebars.js模版引擎中EACH循环遍历的使用
- java中循环遍历
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据 .
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- JS 循环遍历JSON数据
- Js apply方法详解
- 基于openstack的自动化测试平台设计头脑风暴
- iOS 带cookie进行网络请求
- MySQL数据库常用命令收集整理
- 最大团问题实例--部落卫队问题实现
- js中循环遍历
- extjs之simpleStore
- JSTL(JSP Standard Tag Library)
- table中cellpadding、cellpadding样式定义
- node.js入门 - 12.api:进程(process)
- 如何高效利用GitHub
- Android contentProvider 学习心得(1)
- Ext js Ext.Ajax.request同步和异步问题
- 我的第一个Android应用-Mono For Android