Solve errors in jQuery AJAX?

$.ajax({
  url: "wrong_url.json",
  method: "GET",
  error: function(xhr, status, error){
console.log("Error: " + error);
} });

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *