让表单的部分控件不提交

实现: 遍历表格的所有行,如有行中的 checkbox不选中,则设置当前行的所有 控件为disable,即可.
	$(":checkbox:gt(0)").each(function(index, element) {
                if($(this).attr('checked')!='checked'){
					$(this).parent().parent().find("input").attr('disabled',true);		
					
				}
            });


 

 

posted on 2012-06-13 16:40  babyblue  阅读(315)  评论(0)    收藏  举报