Select2 Ajax Method Not Selecting
After looking at another answer it would seem I need to also pass id field with every call, otherwise it will disable the input. Sample code that fixed it: $(‘.select2’).select2({ placeholder: “Policy Name”, minimumInputLength: 3, multiple: false, quietMillis: 100, id: function(bond){ return bond._id; }, ajax: { url: “http://localhost:3000/search”, dataType: ‘json’, type: ‘POST’, data: function(term, page) … Read more