Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's an example of how you get JSON data on error:
- $.ajax({
- url: '/path/to/script.php',
- data: {'my':'data'},
- type: 'POST'
- }).fail(function($xhr) {
- var data = $xhr.responseJSON;
- console.log(data);
- });
Add Comment
Please, Sign In to add comment