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

Filter html elements based on data attribute – Jquery

I have the following html structure <div id="container"> <div id="child_1" data-customId="100"> </div> <div id="child_2" data-customId="100"> </div> <div id="child_3" data-customId="100"> </div> <div id="child_4" data-customId="20"> </div> <div id="child_5" data-customId="323"> </div> <div id="child_6" data-customId="14"> </div> </div> And what I want to do is…

VIEW QUESTION

Django Dropdown GET Option Data – Jquery

I wanted to get the selected text from the dropdown, But I am getting value if I use request.GET['Type']. I wanted to get Data001 instead of Value001 def index(request): print("The output: ",request.POST.get('Type')) return render(request,'index.html',content) <div class="form-row last"> <div class="form-wrapper"> <label…

VIEW QUESTION
Back To Top
Search