How To Append Jquery Select2 Values With InitSelection
Here is my select2 multiple select with ajax. Initially i am setting some values in the initselection like this initSelection : function (element, callback) {     var data = {id: 4
Solution 1:
In processResults method you need to add your initial data in return:
data.items[data.items.length] = initialdata;
results: data.items
initialdata has to be in global/object scope.
Post a Comment for "How To Append Jquery Select2 Values With InitSelection"