Answers for "how to use the ajax json response"

3

how to set json type jquery ajax

$.ajax({
    type: "POST",
    contentType: "application/json",
    url: 'http://localhost:16329/Hello',
    data: { name: 'norm' },
    dataType: "json"
});
Posted by: Guest on June-30-2020
2

jquery ajax json

$.ajax({
  method: "POST",
  url: "some.php",
  dataType: "json",
  data: {}
}).done(json => console.log(json));
Posted by: Guest on March-07-2020

Code answers related to "how to use the ajax json response"

Code answers related to "Javascript"

Browse Popular Code Answers by Language