how to use ajax call in jquery
how to use ajax call in jquery
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gurunatha DogiPosted Jul 15, 2014, 6:43 AM
Check the article link below. It gives complete information on implementing jQuery.ajax in php with source code.
http://www.onlinebuff.com/article_select-insert-update-and-delete-using-jquery-ajax-animation-effects-in-php_43.html
Sai SherlekarPosted Jul 3, 2014, 7:00 AM
$.ajax({
url: "abc.aspx/GetCustomer",
data: "{'prefixText':'" + "Your Textbox Value" + "'}",
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
success: function (data) {
//call ur function after success
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});
write webmethod as per below
[WebMethod]
public static string GetItemAttributeList(string prefixText)
{
return "Hello World";
}