I\'m looking for a way to attach a click-event to a select2-result-item. I\'ve gone ahead and formatted both result and selection via
function format(state)
Just add 'open' listener and set up another 'mouseup' listener for the '' tag:
$("#select").on('open', function() { $('.select2-results i').on('mouseup', function() { alert('aaa'); }); });
Here is the link to my solution: http://jsfiddle.net/EW8t7/