I\'m using Igor Vaynberg\'s Select2 jQuery plugin with the Infinite Scroll with Remote Data option to make an autocomplete search box for my website. The AJAX is working gre
Your problem seems like, your result data doesn't have a property named "id". Select2 plugins wants an id field on data and if it has not, it makes option "unselectable". You may give an id function to override this behavior:
$("#site-search").select2({
id: function(obj) {
return obj.slug; // use slug field for id
},
...