select2 show different values depends on key code example
Example: get select2 selected value
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');
//initialize
$('#mySelect2').select2('data');
//get selected value
$('#mySelect2').find(':selected');