seleccionar2 en el cambio
<script>
$('#exampleSelect2').select2().on('change', function(){
// ...
});
</script>
hirohito
<script>
$('#exampleSelect2').select2().on('change', function(){
// ...
});
</script>
$('#mySelect2').on('select2:select', function (e) {
var data = e.params.data;
console.log(data);
});
//Initialize Select2 Elements
$('#select2-positions').select2().on("change", function (e) {
console.log($(this).val())
});
//other events
//https://select2.org/programmatic-control/events