skip to Main Content

Autocomplete with jQuery

I have been trying to build a simple jQuery Autocomplete. The ajax query returns a JSON String formatted like this below [[{"stockkeepingunitname":"LIT","stockkeepingunitid":"627d3240-174d-11ed-a08e-f3a5c3baaa0d"},{"stockkeepingunitname":"LKTTT","stockkeepingunitid":"8fb03b68-1752-11ed-adc9-4f54c8003b1e"},{"stockkeepingunitname":"TBN","stockkeepingunitid":"f0825efe-173d-11ed-a983-1ff727e3bf1b"}]] Then I pass it to the AutoComplete functions as below. $('#stockKeepingUnit_StockKeepingUnitName').autocomplete({ source: function (request, response) { $.getJSON("/ajax/GetStockKeepingName/?strStockKeepingName=" +…

VIEW QUESTION

Not hitting Success in Ajax – Jquery

hitting controller and returning data while debugging but in js>>Ajax call>>success is not hitting repository public FGMOQMapping GetFGMOQMappingAutoSuggest(long loginId) { FGMOQMapping fGMOQMapping = new FGMOQMapping(); DynamicParameters parameters = new DynamicParameters(); parameters.Add("LoginId", loginId); using (var multi = con.QueryMultiple("usp_FGMOQMapping_GetList_AutoSuggest", parameters, commandType: CommandType.StoredProcedure))…

VIEW QUESTION
Back To Top
Search