My Ajax response is an HTML code how can I save these values in the ajax response for to search values on it? I'm trying to get it in the complete function but I just get
complete: function(e,t,){
console.log(t);
console.log(e);
}
Object { readyState: 0, getResponseHeader: getResponseHeader(), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(), ...
Also I can not use success function because my response is HTML which is throwing a CORS error and status code 0 in the response by the HTML contains the success or error msg and that's why I what to get it, and why to do it in the complete.