Update select2 data without rebuilding the control
select2 v3.x If you have local array with options (received by ajax call), i think you should use data parameter as function returning results for select box: var pills = [{id:0, text: “red”}, {id:1, text: “blue”}]; $(‘#selectpill’).select2({ placeholder: “Select a pill”, data: function() { return {results: pills}; } }); $(‘#uppercase’).click(function() { $.each(pills, function(idx, val) { … Read more