function loadTel(source, id) { $(source).hide(); var data = '{id:' + id +'}'; $.ajax({ type: "POST", url: "/Command.asmx/ServiceGetTel", data: data, contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { $('.telephone').html(msg.d); } }); };