Simply you can accomplish this using jQuery Ajax very easily :-
Let say below is the web method i am having as asmx
[WebMethod(EnableSession = true)]
public string GetData(int id, string name)
{
string jsonData = string.Empty;
jsonData = Parser.EntityToJSon(data);
return jsonData;
}
Here below one is the jQuery ajax code for the ajax call to this web method for fetching data :-
$(function(){
$.ajax({
type: "POST",
url: "../WebMethods/WebService.asmx/GetData",
data: "{Id:" + {pass ID here} + ",Name:'" + {pass name value here} + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
var result = $.parseJSON(response.d);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
}
});
});
Hope this will definitely help you to proceed further.
Please let me know if anything else stops you to accomplish this.