var_dump($_POST)
and it returned an empty array. event.preventDefault
to prevent the browser getting submitted in such scenarios.dataType: 'jsonp'
if it is a cross-domain call.beforeSend:
// this is a pre-request call back functioncomplete:
// a function to be called after the request ends.so code that has to be executed regardless of success or error can go hereasync:
// by default, all requests are sent asynchronouslycache:
// by default true. If set to false, it will force requested pages not to be cached by the browser.