To call ajax you need to execute the following code:
$.ajax({
type: "POST",
url: 'pagename.php', //location of the server
data: varData, //data send to the server
success: function(c) {
//success data
}
});
In above code first of all you need to give the method type wither post or get. In url you need to give the path of the server you want to send request. In data field you need to give the values you want to send to the server.
0 Comment(s)