title: Use both "data" and "response" attributes in ajax call
body: <p>I'm trying to use both the php response and ajax data in the following <code>complete</code> function. Is that possible? I can do things with just <code>function(response)</code> or <code>function(data)</code> but would like to have both available.</p>
  
  <pre><code>function fxn() {
      $.ajax({
          url:'script.php',
          type: 'POST',
          data: { foo: document.getElementById('elementID').value },
          complete: function(response, data) { //doesn't work
              if(response.responseText == data.foo) {
                  //do stuff
              }
          },
          error: function() {
              //handle
          },
      });
      return false;
  }
  </code></pre>