让表单的部分控件不提交
实现: 遍历表格的所有行,如有行中的 checkbox不选中,则设置当前行的所有 控件为disable,即可.
$(":checkbox:gt(0)").each(function(index, element) {
if($(this).attr('checked')!='checked'){
$(this).parent().parent().find("input").attr('disabled',true);
}
});
持续学习、持续收获才能带来持续的满足和快乐!
浙公网安备 33010602011771号