get select2 multiple values code example
Example 1: get value select 2
//get selected value
$('#mySelect2').find(':selected').val();
Example 2: select2 multiple selected values
in_array($value, $array)
//get selected value
$('#mySelect2').find(':selected').val();
in_array($value, $array)