jquery - Search title is not working in Select2 after Ajax call -


search filter works unexpectedly after process result in ajax call processresults

$(".project_title_select2").select2({     ajax: {         url: 'https://myjsfile.js',         datatype: "script",         data: function (params) {              var queryparameters = {                 term: params.term             }             return queryparameters;         },         processresults: function (data) {             return {                 results: $.map(json_development_list, function (item) {                     return {                         text: item[1],                         id: item[0]                     }                 })             };         }     } }); 

search filter works unexpectedly after process result in ajax call processresults

enter image description here


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -