How to retrieve return value from $.post function
<p>as my subject / title. here is my code</p>

<pre><code>$(document).on("keyup","[name=BNAM]",function(){
    var nam = $(this).attr("name");
    var val = $(this).val();
    var typ = $(this).prev().val();

    $.post(
        "pro/bulletins_handle.php",
        {BTN:"QCHKNAM",BTYP:typ,BNAM:val},
        function(data){ 
        alert(nam+":"+val+":"+data); //display to check the return value of data
        var reTURN = data; //assign data into reTURN
            alert($(this).html());//Error: it say undefined
        });
    alert(reTURN); //Error: reTURN is not defined
});
</code></pre>

<p>** my return from post is 0 or 1 **</p>

<p><hr/>
Questions:<br/>
1). How to retrieve return value from $.post function?<br/>
2). Why it say undefined? $(this) is not = [name=BNAM] ??</p>
