关于Checbox的操作,已选,未选,判断

checkbox: $("#chk1").attr("checked",'');//不打勾
                 $("#chk2").attr("checked",true);//打勾
                 if($("#chk1").attr('checked')==undefined) //判断是否已经打勾
 
原文地址:https://www.cnblogs.com/nangong/p/3193090.html