I am using EasyAdmin Bundle, which seems to use Select2 for internal select form fields. I am trying to capture the onChange event, but I cannot figure out why the following code does not work:
$('#mySelect2Id').on('change', function () {
console.log($(this).value());
})
Unfortunately, I cannot see anything within the console when I change the value of a Select2. Has someone experienced similar issues? Thanks for your help.