Ajax Call
ajax send a request in ajax and get the response
Best and simply way to call ajax with PHP:
$.ajax({// on an event
type: "GET",url: "test.php", #with valid pathdata: {col1: "value1", col2: "value2"},cache: false,success: function (responce) {// alert your response to check dataif (responce.length > 0) {var data = JSON.parse(responce); // Parse JSON//Your logic here}}});
Leave a Comment