I am using the select2 for on of my search boxes. I\'m getting the results from my URL but I\'m not able to select an option from it. I want to use the \'product.productName
You are missing id attribute for result data. if it has not, it makes option "unselectable".
Example:
$('#e7').select2({ id: function(e) { return e.productName; }, });