I am trying to call to a different document to get the phone number. Unfortunately, it does not appear to be working properly and won’t pull the correct phone number. Is there a way I can just set the phone number in the code? Currently my code looks like this:
function setTollNo() {
$.ajax({
type: "POST",
url: "/PURLService.asmx/GetTollNo",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(html) {
$("[id*=tollNo]").html(html.d);
},
error: function() { alert('error'); }
});
}
Would I be able to put something along the lines of the following?
tollNo = 18005557755
I think you are looking for
Go to the jQuery.ajax docs and search for “Examples”.