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