jquery1.7 checkbox判断是否选中,checkbox选中、取消选择 代码文章源自菜鸟学院-https://www.cainiaoxueyuan.com/gcs/10184.html
//更改单选按钮背景图片
function change_pic(obj){
if("checked" == $('#checkautologin').attr('checked')){
$('#checkautologin').attr('checked',false);
$(obj).attr('class','altRadioOff');
}else{
$('#checkautologin').attr('checked',true);
$(obj).attr('class','altRadioOn');
}
}文章源自菜鸟学院-https://www.cainiaoxueyuan.com/gcs/10184.html
jquery实现checkbox全选功能文章源自菜鸟学院-https://www.cainiaoxueyuan.com/gcs/10184.html
//全部选择
$("#all").click(function(){
$("input[name='checkbox1']").each(function(){
$(this).attr("checked",true);
});
});文章源自菜鸟学院-https://www.cainiaoxueyuan.com/gcs/10184.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/gcs/10184.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/gcs/10184.html