Script

jQuery(function($){
    var passInput = $('#password');
    var passCheck = $('<input type="checkbox" />');
    passInput.after(passCheck);
    
    passCheck.click(function(){
        if(this.checked){
            alert('visible');
        }else{
            alert('hidden');
        }
    });
});

Demo