I’m using Select2 version 4 with ACF Pro v5.7.12
After the form loads fully - and the Select2 fields are fully populated - I run this code:
$('#s2id_acf-field_58b7183e6cd9b').val( "Greek" );
$('#s2id_acf-field_58b7183e6cd9b').trigger('change');
But unfortunately it doesn’t select GREEK - instead nothing happens. There are no console error messages either.
I’ve also tried this unsuccessfully:
$('#s2id_acf-field_58b7183e6cd9b-input').val( "Greek );
$('#s2id_acf-field_58b7183e6cd9b-input').trigger('change');
Likewise I can’t trigger any change function
$('#s2id_acf-field_58b7183e6cd9b-input').on('change', function() {
console.log ( "change happened" );
});
It seems like the Select2 fields are just dead fish and floating there without doing a thing.