title: Get last ajax call in jquery
body: <p>I want to get last ajax call made in my code . </p>
  
  <p>here is my code </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;script src="Scripts/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
  
  
  &lt;script&gt;
      function getCreateAccount() {
          $.ajax({
               type: "GET",
               url: "/Account/Register/",
               contentType: "application/json; charset=utf-8",
               dataType: "json"
           });
          console.log($.ajax.mostRecentCall.args[0]);
      }
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>but when i see in my console it says "TypeError: $.ajax.mostRecentCall is undefined" . </p>
  
  <p>Thanks,</p>