Answers for "$('#myform').on('sumbit', function(){ var form = $(this); $.ajax({ url : 'recup.php', data : new FormData("

-1

jquery form data

var fd = new FormData();    
fd.append( 'file', input.files[0] );

$.ajax({
  url: 'http://example.com/script.php',
  data: fd,
  processData: false,
  contentType: false,
  type: 'POST',
  success: function(data){
    alert(data);
  }
});
Posted by: Guest on September-24-2020

Code answers related to "$('#myform').on('sumbit', function(){ var form = $(this); $.ajax({ url : 'recup.php', data : new FormData("

Code answers related to "Javascript"

Browse Popular Code Answers by Language