forum

Home / DeveloperSection / Forums / Send JSON data with jQuery

Send JSON data with jQuery

Anonymous User 1408 21-Mar-2018

I want to send data as Json format but why this code returning Name=Mindstick City=Allahabad 

var arr = {Name:'Mindstick', City:Allahabad};

$.ajax(
   {
        url: "Ajax.ashx",
        type: "POST",
        data: arr,
        dataType: 'json',
        async: false,
        success: function(msg) {
            alert(msg);
        }
    }
);

can any helpme


Updated on 21-Mar-2018
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By