1var form = new FormData();
2form.append('varName','data');
3$.ajax({
4 type:'POST',
5 url: $(this).attr('action'),
6 data:formData,
7 cache:false,
8 contentType: false,
9 processData: false,
10 success:function(data){
11 //function here
12 },
13 error: function(data){
14 //function here
15 }
16});