$(function () {
$("#btnCallService").click(
function () {
CalWCF();
});
});
function CalWCF() {
var service = new IService1();
service.GetData($("#txtName").val(),
function (result) {
$("#dvMessage").html(result);
});
}


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 3, 2013, 7:33 AM EDT
You can call WCF service using Jquery AJAX like this
$("#dvMessage").html(result);
in your WCF service
Regards,
Iftikar