Why does a FormData object work but not a regular object in Jquery AJAX submit?
I am confused about using data objects in my AJAX submit. Here's my submit AJAX script: $.ajax({ url:'/library/php/triggers.php', type:'POST', data:data, cache:false, dataType:'json', processData:false, contentType:false, success:function(result){console.log(result);} }); This data works: var data=new FormData(this); data.append('hello','my friend'); But this data does not work:…