现在的位置: 首页 > 综合 > 正文

让表单的部分控件不提交

2013年08月08日 ⁄ 综合 ⁄ 共 208字 ⁄ 字号 评论关闭
实现: 遍历表格的所有行,如有行中的 checkbox不选中,则设置当前行的所有 控件为disable,即可.
	$(":checkbox:gt(0)").each(function(index, element) {
                if($(this).attr('checked')!='checked'){
					$(this).parent().parent().find("input").attr('disabled',true);		
					
				}
            });

 

抱歉!评论已关闭.