Creating ajax template

Kmandapalli
Posted by Kmandapalli under jQuery category on | Points: 40 | Views : 232
$.ajax({
type: 'POST',
url: 'backend.php',
data: "q="+myform.serialize(),
success: function(data){
// on success use return data here
},
error: function(xhr, type, exception) {
// if ajax fails display error alert
alert("ajax error response type "+type);
}
});

Comments or Responses

Login to post response