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
Comments
Post a Comment