function check_ok(obj){
if(obj.checked){
$("input[name='submit']").css("background-color","#257DC2");
$("input[name='submit']").attr("disabled",false);
return false;
}else{
$("input[name='submit']").css("background-color","#c0c0c0");
$("input[name='submit']").attr("disabled",true);
return false;
}
}
选中与不选中某个复选框时,提交按钮变灰
jquery判断checkbox的值是否选中,试了好几种方法都不行,最后用的var arr = $("input[name='readme']").is(':checked');