In the jQuery ajax, I need a xhr.statusText:'OK'
and throw a 'success'
.
I also throw a xhr.status:200
serves the same?
- Example:
if (xhr.statusText == 'OK' || xhr.status == 200) {
// Ok! It works! Let's do something...
});