function initDataItem(itemcode) { var url = "/DataItem/FindCodeDropDown?itemCode=" + itemcode; window.$.ajax({ url: url, type: "get", dataType: "json", success: function (response) { return response; } }); } function initDataByUrl(url) { window.$.ajax({ url: url, type: "get", dataType: "json", success: function (response) { return response; } }); }