daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var domForm = document.getElementById('ELEMENT-ID');
  2. var dataForm = new FormData(domForm);
  3.  
  4. $.ajax({
  5.   type: 'post',
  6.   url: URL,
  7.   data: dataForm,
  8.   processData: false,
  9.   contentType: false,
  10.   success: function (data) {
  11.     console.log(data);
  12.   }
  13. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top