Any ideas on why this may be and how to fix this?
Thanks!
*Attached is a picture of the blank select2-search-choice elements\
--
You received this message because you are subscribed to the Google Groups "select2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to select2+u...@googlegroups.com.
To post to this group, send email to sel...@googlegroups.com.
Visit this group at http://groups.google.com/group/select2.
For more options, visit https://groups.google.com/groups/opt_out.
initSelection : function (element, callback) {
var data = [];
$(element.val().split(",")).each(function () {
data.push({id: this, text: this});
});
return callback(data);
}
Are you saying that there should be a text attribute in the object? Attached is what the current objects look like when I print each one inside the .each from above.
Thanks
On Monday, August 12, 2013 11:55:03 AM UTC-4, Igor Vaynberg wrote: