This belong to codes prior to select2 version 4
I have a simple code of select2 that get data from ajax
select2
$('#inputID').val("100").select2();
It would be more appropriate to apply select2 after choosing one of the current select.