Is it possible to add another new dataTypes in AJAX using short-hand method POST in jquery? Maybe someone who's expert in jquery can help me.
This is my AJAX.
$.ajax({
url: myUrl,
type: 'POST',
data: formData,
cache: false,
contentType: false,
processData: false,
success: function(data){
console.log(data);
}
});
I want to convert it to short-hand;
$.post(myURL,{
formData
}).done(function(response){
console.log(response)
}, contentType: false, processData: false, cache: false
);
But the above code is not working.