Open farzinmonsef opened 10 months ago
$.ajax({ url: '/StartService/CallAddressWebService', dataType: "json", disabled: !autocompleteEnabled, data: { prefix: searchTerm }, success: function (data) { var additionalData = [ { label: "Don't see your address?<span class='stsvcColourchange'> Continue entering address manually</span>", value: "" }, ]; if (data.addressList == null) { response(additionalData); } else { response($.map(data.addressList, function (item) { return { label: item.address1 + ", " + item.city + " " + item.state, value: item.address1 + ", " + item.city + " " + item.state, address: item.address1, city: item.city, state: item.state, zip: item.postal, premId: item.premId }; }).concat(additionalData)); } }, error: function (xhr, status, error) { console.error(error); } });
Tr3.zip