this.name undefined in a callback function of getJSon

this.name undefined in a callback function of getJSon

Hi all,

I have a small piece of code:

    $(":input").each(function(){
        alert(this.name);
        ---->OK
        $.getJSON("my_ajax.php",
            function(data){

                alert(data)
                ---->OK

                alert(this.name);
                -----> NOT OK (it says "undefined")

                //what i would like to do (but of course, it doesn't work cuz "undefined")
                $(this).val(data).change;

            });
    });

Any idea ?

thanx and regards,

f.