//给复选框设置id
$("#id").is(":checked");//判断复选框是否选中,返回true或false
$("#id").prop("checked",true);//设置复选框为选中状态
$("#id").prop("checked",false);//设置复选框为不选中状态
//给复选框设置id
$("#id").is(":checked");//判断复选框是否选中,返回true或false
$("#id").prop("checked",true);//设置复选框为选中状态
$("#id").prop("checked",false);//设置复选框为不选中状态