Using Ajax templates in JQuery

Goud.Kv
Posted by Goud.Kv under jQuery category on | Points: 40 | Views : 303
$.ajax({
type: 'POST',
url: 'default.php',
data: "q="+myform.serialize(),
success: function(data){

// use return data on success

},
error: function(xhr, type, exception) {

// display error alert, if ajax fails

alert("ajax error response type "+type);
}
});

Comments or Responses

Login to post response