romach
4/22/2017 - 12:47 AM

Make AJAX request with JQuery

Make AJAX request with JQuery

$.ajax({
    type: "POST",
    url: url,
    data: JSON.stringify(requestData),
    contentType: "application/json; charset=utf-8",
    success: function (response) {
      // do on success
    },
    error: function (response) {
      // do on error  
    }
});