checkbox状态改变事件

$("input[type='checkbox']").off("click");
			$("input[type='checkbox']").on('click',function(){
				var flag = $(this).is(':checked');
				if(flag){
					if(user.corpId == $(this).attr("vociDeptId")){
						$.alert("您和候选人属于同一个部门,不能投票!");
						$(this).prop("checked",false);
					}
				}
			});


猜你喜欢

转载自blog.csdn.net/u014505277/article/details/72897726