title: Send FormData and String Data Together Through JQuery AJAX
body: <p>I have the below that uploads an image using JQuery's AJAX function</p>
  
  <pre><code>var id = &lt;?php echo $id; ?&gt;;
  var img_data = new FormData($("form")[0]);
  
  $.ajax({
      url: 'add.php',
      data: img_data,
      contentType: false,
      processData: false,
      type: 'POST',
      success: function(data){
          alert(data);
      }
  });
  </code></pre>
  
  <p>I'd like to include a string with the FormData sent.  I tried the following, but no luck</p>
  
  <pre><code>data: img_data {id: id},
  </code></pre>
  
  <p>What's the correct syntax here?</p>