Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#form').on('submit', function (e) {
- e.preventDefault();
- const formData = new FormData(this);
- $.ajax({
- method: 'post',
- url: '/ajax/path',
- data: formData,
- cache: false,
- contentType: false,
- processData: false,
- }).done(function (response) {
- console.log(response);
- });
- });
Add Comment
Please, Sign In to add comment