I have made my ajax request, which works great and get response with type POST(server side is PHP). now i want to use it in the placeholder of an element with this code
function checkAvailability() {
    $("#loaderIcon").show();
    jQuery.ajax({
        url: "<?php echo ADDR;?>inc/promotion_check_availability.php",
        data:'code='+$("#code").val(),
        type: "POST",
        success:function(data){
            $("#result").html(data);
            var result = $(data).filter('#result');
            $("#amount").attr("placeholder", result);
            $("#loaderIcon").hide();
        },
        error:function (){}
    });
};
but in the placeholder of an element shown [object Object]. i don't know what is the problem. i really appreciate if some one help me figuring out this problem.
 
     
     
    