$ ( "#chk1" ).attr ( "checked",'' );//不打勾 $ ( "#chk2" ).attr ( "checked",true );//打勾 if ( $ ( "#chk1" ).attr ( 'checked' ) ==undefined ) //判断是否已经打勾 { }