GET and Post data from server using Cordova JQuery $.ajax() .
Get and post request are basically used to fetch response from server so here are the following steps to achieve this,
1.we need to add following two header files into server side Php file.
2.we need to call jquery$.ajax() and passes all the essential detials
example of sending POST request type are as follow.