Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery ajax get response code

$.ajax({
    //...        
    success: function(data, textStatus, xhr) {
        console.log(xhr.status);
    },
    complete: function(xhr, textStatus) {
        console.log(xhr.status);
    } 
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #ajax #response #code
ADD COMMENT
Topic
Name
4+4 =