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

How to use AJAX for different functions when more buttons included in the form – Jquery

I have a model as below in PHP. <div id="Modal" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title" >Block</h4> </div> <div class="modal-body"> <form method="post" id="block_form"> <label>Number</label> <input type="text" name="num_block" id="num_block" class="form-control" readonly/> <br />…

VIEW QUESTION
Back To Top
Search