select 2 element for doing the same action javascript code example
Example: select2.org events
$('#mySelect2').on('select2:select', function (e) {
var data = e.params.data;
console.log(data);
});
$('#mySelect2').on('select2:select', function (e) {
var data = e.params.data;
console.log(data);
});