Skip to content Skip to sidebar Skip to footer

Ajax() POST Can't Send Data To Server Side

My js side look like this $.ajax({ type:'POST', data: {data:'abc'}, url: 'http://example.com/', success: function(result){ console.log(r

Solution 1:

data should also be in quote

 $.ajax({
            type:"POST",
            data: {'data':'abc'},
           crossDomain: false,
            url: "http://example.com/",
            success: function(result){
                console.log(result);
            }
        });

Post a Comment for "Ajax() POST Can't Send Data To Server Side"