title: how to send string with formData in ajax?
body: <p>I want to send id also with formdata ! How can i do this please edit my code so that i can understand easily.</p>
  
  <pre><code>$(document).ready(function() {
    $("#profile_photo_form").on('submit', (function(e) {
      e.preventDefault();
      var id = $("#update").attr("update");
  
      $.ajax({
        url: "/php/profile_photo.php",
        type: "POST",
        data: new FormData(this),
        beforeSend: function() {},
        contentType: false,
        processData: false,
        success: function(data) {
          alert(data);
          $("#toggle").load('/all_employees.html');
        },
        error: function() {}
      });
    }));
  });
  </code></pre>