I have an input like
   <input  type="checkbox" name="acept" id="acept">
and some simple JS/jquery code like
$('#acept').click(function(){
    /* if( $("#acept").checked ){
        alert(" I'm checked ");
    } */
    if( this.checked ){
        alert(" I'm checked ");
    }
})
Now, the first 'if' (the commented one) doesn't work, but the second one does. Any explanation as to why?
 
    