Why does jquery fadeOut not work in the second time?

Why does jquery fadeOut not work in the second time?

I have this code:
function CodeEasy(function_name) {
    $("#content").fadeOut(1000);
    setTimeout(function_name,1000);
   
}

function goto(p) {
    $.post
    (
         'ajax.php',
        {
            action: 'ppage',
            page:p
        },
        function (data) {
            $("#content").css("display","none");
            $("#content").html(data);
            $("#content").fadeIn('slow');
        }
    );   
}

<div id="content"></div>
<a href="javascript:CodeEasy('goto(1)');">Click</a>

When click In the first time, fadeOut work well, but when i click again faceOut inside the function CodeEasy not work, i don't know why.
I try removed ajax from function goto:

function goto(p) {
    data = 'test';
            $("#content").css("display","none");
            $("#content").html(data);
            $("#content").fadeIn('slow');
}

faceOut work well .. how to fix it ?

Thanks and regards.