$(':input').change(function(){ if($(this).attr("checked")){ alert(1); }else{alert(2); } });
$(this).prop("checked")